{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/30501285","id":30501285,"diff_hunk":"@@ -0,0 +1,257 @@\n+#!/usr/bin/python\n+# -*- coding: utf-8 -*-\n+\n+# (c) 2015, Manuel Sousa <manuel.sousa@gmail.com>\n+#\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+\n+DOCUMENTATION = '''\n+---\n+module: rabbitmq_queue\n+author: Manuel Sousa\n+version_added: \"2.0\"\n+\n+short_description: This module manages rabbitMQ queues\n+description:\n+  - This module uses rabbitMQ Rest API to create/delete queues\n+requirements: [ python requests ]\n+options:\n+    name:\n+        description:\n+            - Name of the queue to create\n+        required: true\n+    state:\n+        description:\n+            - Whether the queue should be present or absent\n+            - Only present implemented atm\n+        choices: [ \"present\", \"absent\" ]\n+        required: false\n+        default: present\n+    login_user:\n+        description:\n+            - rabbitMQ user for connection\n+        required: false\n+        default: guest\n+    login_password:\n+        description:\n+            - rabbitMQ password for connection\n+        required: false\n+        default: false\n+    login_host:\n+        description:\n+            - rabbitMQ host for connection\n+        required: false\n+        default: localhost\n+    login_port:\n+        description:\n+            - rabbitMQ management api port\n+        required: false\n+        default: 15672\n+    vhost:\n+        description:\n+            - rabbitMQ virtual host\n+        required: false\n+        default: \"/\"\n+    durable:\n+        description:\n+            - whether queue is durable or not\n+        required: false\n+        choices: [ \"yes\", \"no\" ]\n+        default: yes\n+    auto_delete:\n+        description:\n+            - if the queue should delete itself after all queues/queues unbound from it\n+        required: false\n+        choices: [ \"yes\", \"no\" ]\n+        default: no\n+    message_ttl:\n+        description:\n+            - How long a message can live in queue before it is discarded (milliseconds)\n+        required: False\n+    auto_expires:\n+        description:\n+            - How long a queue can be unused before it is automatically deleted (milliseconds)\n+        required: false","path":"messaging/rabbitmq_queue.py","position":88,"original_position":88,"commit_id":"46eedaf36894e78a4000889e83108775a67dd345","original_commit_id":"46eedaf36894e78a4000889e83108775a67dd345","user":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"body":"non required arguments should state their default","created_at":"2015-05-18T12:04:59Z","updated_at":"2015-05-18T12:04:59Z","html_url":"https://github.com/ansible/ansible-modules-extras/pull/462#discussion_r30501285","pull_request_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/30501285"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/462#discussion_r30501285"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462","id":35024700,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/462","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/462.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/462.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/462","number":462,"state":"open","locked":false,"title":"Rabbitmq queue","user":{"login":"manuel-sousa","id":4235580,"avatar_url":"https://avatars.githubusercontent.com/u/4235580?v=3","gravatar_id":"","url":"https://api.github.com/users/manuel-sousa","html_url":"https://github.com/manuel-sousa","followers_url":"https://api.github.com/users/manuel-sousa/followers","following_url":"https://api.github.com/users/manuel-sousa/following{/other_user}","gists_url":"https://api.github.com/users/manuel-sousa/gists{/gist_id}","starred_url":"https://api.github.com/users/manuel-sousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuel-sousa/subscriptions","organizations_url":"https://api.github.com/users/manuel-sousa/orgs","repos_url":"https://api.github.com/users/manuel-sousa/repos","events_url":"https://api.github.com/users/manuel-sousa/events{/privacy}","received_events_url":"https://api.github.com/users/manuel-sousa/received_events","type":"User","site_admin":false},"body":"This module allows creation/deletion of rabbitmq queues. It uses rabbitMQ REST API.","created_at":"2015-05-08T16:32:49Z","updated_at":"2015-05-18T12:04:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2773f57fedde8896798ded0dcc2d10f8a2905892","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/462/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/46eedaf36894e78a4000889e83108775a67dd345","head":{"label":"manuel-sousa:rabbitmq_queue","ref":"rabbitmq_queue","sha":"46eedaf36894e78a4000889e83108775a67dd345","user":{"login":"manuel-sousa","id":4235580,"avatar_url":"https://avatars.githubusercontent.com/u/4235580?v=3","gravatar_id":"","url":"https://api.github.com/users/manuel-sousa","html_url":"https://github.com/manuel-sousa","followers_url":"https://api.github.com/users/manuel-sousa/followers","following_url":"https://api.github.com/users/manuel-sousa/following{/other_user}","gists_url":"https://api.github.com/users/manuel-sousa/gists{/gist_id}","starred_url":"https://api.github.com/users/manuel-sousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuel-sousa/subscriptions","organizations_url":"https://api.github.com/users/manuel-sousa/orgs","repos_url":"https://api.github.com/users/manuel-sousa/repos","events_url":"https://api.github.com/users/manuel-sousa/events{/privacy}","received_events_url":"https://api.github.com/users/manuel-sousa/received_events","type":"User","site_admin":false},"repo":{"id":35288308,"name":"ansible-modules-extras","full_name":"manuel-sousa/ansible-modules-extras","owner":{"login":"manuel-sousa","id":4235580,"avatar_url":"https://avatars.githubusercontent.com/u/4235580?v=3","gravatar_id":"","url":"https://api.github.com/users/manuel-sousa","html_url":"https://github.com/manuel-sousa","followers_url":"https://api.github.com/users/manuel-sousa/followers","following_url":"https://api.github.com/users/manuel-sousa/following{/other_user}","gists_url":"https://api.github.com/users/manuel-sousa/gists{/gist_id}","starred_url":"https://api.github.com/users/manuel-sousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuel-sousa/subscriptions","organizations_url":"https://api.github.com/users/manuel-sousa/orgs","repos_url":"https://api.github.com/users/manuel-sousa/repos","events_url":"https://api.github.com/users/manuel-sousa/events{/privacy}","received_events_url":"https://api.github.com/users/manuel-sousa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manuel-sousa/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras","forks_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/manuel-sousa/ansible-modules-extras/releases{/id}","created_at":"2015-05-08T15:57:09Z","updated_at":"2015-05-08T16:00:12Z","pushed_at":"2015-05-15T15:14:50Z","git_url":"git://github.com/manuel-sousa/ansible-modules-extras.git","ssh_url":"git@github.com:manuel-sousa/ansible-modules-extras.git","clone_url":"https://github.com/manuel-sousa/ansible-modules-extras.git","svn_url":"https://github.com/manuel-sousa/ansible-modules-extras","homepage":"","size":6080,"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":"66a96ad6e2a93f7ed786c630cf81e996b9a50403","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":24474138,"name":"ansible-modules-extras","full_name":"ansible/ansible-modules-extras","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-extras","description":"Ansible extra modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-extras","forks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-extras/releases{/id}","created_at":"2014-09-25T20:28:42Z","updated_at":"2015-05-18T02:43:15Z","pushed_at":"2015-05-18T11:15:09Z","git_url":"git://github.com/ansible/ansible-modules-extras.git","ssh_url":"git@github.com:ansible/ansible-modules-extras.git","clone_url":"https://github.com/ansible/ansible-modules-extras.git","svn_url":"https://github.com/ansible/ansible-modules-extras","homepage":"","size":19707,"stargazers_count":204,"watchers_count":204,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":435,"mirror_url":null,"open_issues_count":190,"forks":435,"open_issues":190,"watchers":204,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/462"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/462"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/462/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/462/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/46eedaf36894e78a4000889e83108775a67dd345"}}}}