{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments/84970012","pull_request_review_id":5712868,"id":84970012,"diff_hunk":"@@ -0,0 +1,338 @@\n+#!/usr/bin/python -t\n+# This file is part of Ansible\n+#\n+# Ansible is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# Ansible is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.\n+\n+DOCUMENTATION = '''\n+---\n+module: kyup\n+short_description: create, terminate, start or stop a container in kyup.com, return container_id.\n+description:\n+    - Creates or terminates Kyup container. When created optionally waits for it to be 'running'. This module has a dependency on python-json and python-requests.\n+version_added: \"2.2\"\n+author: Marian Marinov <mm@kyup.com>\n+options:\n+  api_key:\n+    description:\n+      - Kyup.com API key. The key can also be supplied by setting the Environment variable KYUP_API_KEY.\n+    required: true\n+  enc_key:\n+    description:\n+      - Kyup.com encryption key. The key can also be supplied by setting the Environment variable KYUP_ENC_KEY.\n+    required: false\n+  action:\n+    description:\n+      - Action you want to perform on the container.\n+    required: true\n+  name:\n+    description:\n+      - Name of the container that you will create/operate on\n+    required: true\n+  ssh_keys:\n+    description:\n+      - Comma separated list of ssh key names, that have access to this container.\n+    required: false\n+  password:\n+    description:\n+      - Password for the root user of the container. Required when I(action) = 'create'.\n+    required: false\n+  image:\n+    description:\n+      - Template image to use when creating the container. Required when I(action) = 'create'.\n+    required: false\n+  dc_id:","path":"cloud/kyup/kyup.py","position":54,"original_position":54,"commit_id":"9a28dc6766ebbda5ea893a29df02348edbcb1c47","original_commit_id":"18b2667bcfb1f869db44a07463bc31e28f4032e2","user":{"login":"ryansb","id":636610,"avatar_url":"https://avatars.githubusercontent.com/u/636610?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansb","html_url":"https://github.com/ryansb","followers_url":"https://api.github.com/users/ryansb/followers","following_url":"https://api.github.com/users/ryansb/following{/other_user}","gists_url":"https://api.github.com/users/ryansb/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansb/subscriptions","organizations_url":"https://api.github.com/users/ryansb/orgs","repos_url":"https://api.github.com/users/ryansb/repos","events_url":"https://api.github.com/users/ryansb/events{/privacy}","received_events_url":"https://api.github.com/users/ryansb/received_events","type":"User","site_admin":false},"body":"That's only for empty ones in docs. It's not very nice to read (as a user) a bunch of empty `aliases:` lists when looking for something. Aliases are still allowed. ","created_at":"2016-10-25T18:31:30Z","updated_at":"2016-10-25T18:38:24Z","html_url":"https://github.com/ansible/ansible-modules-core/pull/4994#discussion_r84970012","pull_request_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments/84970012"},"html":{"href":"https://github.com/ansible/ansible-modules-core/pull/4994#discussion_r84970012"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994","id":86600372,"html_url":"https://github.com/ansible/ansible-modules-core/pull/4994","diff_url":"https://github.com/ansible/ansible-modules-core/pull/4994.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/4994.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4994","number":4994,"state":"open","locked":false,"title":"Add the Kyup container provider API to the cloud modules","user":{"login":"hackman","id":202760,"avatar_url":"https://avatars.githubusercontent.com/u/202760?v=3","gravatar_id":"","url":"https://api.github.com/users/hackman","html_url":"https://github.com/hackman","followers_url":"https://api.github.com/users/hackman/followers","following_url":"https://api.github.com/users/hackman/following{/other_user}","gists_url":"https://api.github.com/users/hackman/gists{/gist_id}","starred_url":"https://api.github.com/users/hackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackman/subscriptions","organizations_url":"https://api.github.com/users/hackman/orgs","repos_url":"https://api.github.com/users/hackman/repos","events_url":"https://api.github.com/users/hackman/events{/privacy}","received_events_url":"https://api.github.com/users/hackman/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n - New Module Pull Request\r\n\r\n##### COMPONENT NAME\r\nkyup\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.2.0\r\n  config file = /root/api/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### SUMMARY\r\nIntroducing the Kyup container provider API to Ansible.\r\nWith this module, users of Ansible will be able to provision and manage containers inside the Kyup architecture.\r\nThe module has been developed and tested on Debian Jessie.\r\n","created_at":"2016-09-24T00:30:48Z","updated_at":"2016-10-25T18:38:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc8bf0d8eeab525c48436656c2a145d7ad19c8f2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4994/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/9a28dc6766ebbda5ea893a29df02348edbcb1c47","head":{"label":"Kyup-com:devel","ref":"devel","sha":"9a28dc6766ebbda5ea893a29df02348edbcb1c47","user":{"login":"Kyup-com","id":12334527,"avatar_url":"https://avatars.githubusercontent.com/u/12334527?v=3","gravatar_id":"","url":"https://api.github.com/users/Kyup-com","html_url":"https://github.com/Kyup-com","followers_url":"https://api.github.com/users/Kyup-com/followers","following_url":"https://api.github.com/users/Kyup-com/following{/other_user}","gists_url":"https://api.github.com/users/Kyup-com/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyup-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyup-com/subscriptions","organizations_url":"https://api.github.com/users/Kyup-com/orgs","repos_url":"https://api.github.com/users/Kyup-com/repos","events_url":"https://api.github.com/users/Kyup-com/events{/privacy}","received_events_url":"https://api.github.com/users/Kyup-com/received_events","type":"Organization","site_admin":false},"repo":{"id":68675504,"name":"ansible-modules-core","full_name":"Kyup-com/ansible-modules-core","owner":{"login":"Kyup-com","id":12334527,"avatar_url":"https://avatars.githubusercontent.com/u/12334527?v=3","gravatar_id":"","url":"https://api.github.com/users/Kyup-com","html_url":"https://github.com/Kyup-com","followers_url":"https://api.github.com/users/Kyup-com/followers","following_url":"https://api.github.com/users/Kyup-com/following{/other_user}","gists_url":"https://api.github.com/users/Kyup-com/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyup-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyup-com/subscriptions","organizations_url":"https://api.github.com/users/Kyup-com/orgs","repos_url":"https://api.github.com/users/Kyup-com/repos","events_url":"https://api.github.com/users/Kyup-com/events{/privacy}","received_events_url":"https://api.github.com/users/Kyup-com/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kyup-com/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/Kyup-com/ansible-modules-core","forks_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/Kyup-com/ansible-modules-core/deployments","created_at":"2016-09-20T04:55:23Z","updated_at":"2016-09-20T04:55:26Z","pushed_at":"2016-10-07T00:06:45Z","git_url":"git://github.com/Kyup-com/ansible-modules-core.git","ssh_url":"git@github.com:Kyup-com/ansible-modules-core.git","clone_url":"https://github.com/Kyup-com/ansible-modules-core.git","svn_url":"https://github.com/Kyup-com/ansible-modules-core","homepage":"","size":10449,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"fb779bf30cfe4bbe15b2fe685974caeca71b941c","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":24474126,"name":"ansible-modules-core","full_name":"ansible/ansible-modules-core","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-core","forks_url":"https://api.github.com/repos/ansible/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-core/deployments","created_at":"2014-09-25T20:28:25Z","updated_at":"2016-10-25T14:05:06Z","pushed_at":"2016-10-25T14:12:56Z","git_url":"git://github.com/ansible/ansible-modules-core.git","ssh_url":"git@github.com:ansible/ansible-modules-core.git","clone_url":"https://github.com/ansible/ansible-modules-core.git","svn_url":"https://github.com/ansible/ansible-modules-core","homepage":"","size":20596,"stargazers_count":870,"watchers_count":870,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1939,"mirror_url":null,"open_issues_count":1173,"forks":1939,"open_issues":1173,"watchers":870,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994"},"html":{"href":"https://github.com/ansible/ansible-modules-core/pull/4994"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4994"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4994/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/4994/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/9a28dc6766ebbda5ea893a29df02348edbcb1c47"}}}}
{"actor":{"display_login":"ryansb"}}