{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/74942803","id":74942803,"diff_hunk":"@@ -0,0 +1,644 @@\n+#!/usr/bin/python\n+# -*- coding: utf-8 -*-\n+\n+# (c) 2016, Joe Adams <adams10301@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+import json\n+from time import sleep\n+\n+# import module snippets\n+from ansible.module_utils.basic import *\n+from ansible.module_utils.urls import *\n+\n+DOCUMENTATION = '''\n+---\n+module: pulp_repo\n+author: \"Joe Adams (@sysadmind)\"\n+short_description: Add or remove Pulp repos from a remote host.\n+description:\n+  - Add or remove Pulp repos from a remote host.\n+version_added: \"2.2\"\n+requirements: []\n+options:\n+  add_export_distributor:\n+    description:\n+      - Whether or not to add the export distributor to new C(rpm) repositories.\n+    required: false\n+    default: false\n+  feed_url:","path":"packaging/pulp_repo.py","position":43,"original_position":43,"commit_id":"e3cd73cbfb72b17ca9745b21b0642edec8bcbbf6","original_commit_id":"e3cd73cbfb72b17ca9745b21b0642edec8bcbbf6","user":{"login":"jtyr","id":3788909,"avatar_url":"https://avatars.githubusercontent.com/u/3788909?v=3","gravatar_id":"","url":"https://api.github.com/users/jtyr","html_url":"https://github.com/jtyr","followers_url":"https://api.github.com/users/jtyr/followers","following_url":"https://api.github.com/users/jtyr/following{/other_user}","gists_url":"https://api.github.com/users/jtyr/gists{/gist_id}","starred_url":"https://api.github.com/users/jtyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtyr/subscriptions","organizations_url":"https://api.github.com/users/jtyr/orgs","repos_url":"https://api.github.com/users/jtyr/repos","events_url":"https://api.github.com/users/jtyr/events{/privacy}","received_events_url":"https://api.github.com/users/jtyr/received_events","type":"User","site_admin":false},"body":"I would rename this to `feed` to follow the convention given by `pulp-admin` with its `--feed`.","created_at":"2016-08-16T14:15:39Z","updated_at":"2016-08-16T14:15:39Z","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1961#discussion_r74942803","pull_request_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1961","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/74942803"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1961#discussion_r74942803"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1961"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1961","id":65197950,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/1961","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/1961.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/1961.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1961","number":1961,"state":"open","locked":false,"title":"Pulp repo","user":{"login":"sysadmind","id":2531691,"avatar_url":"https://avatars.githubusercontent.com/u/2531691?v=3","gravatar_id":"","url":"https://api.github.com/users/sysadmind","html_url":"https://github.com/sysadmind","followers_url":"https://api.github.com/users/sysadmind/followers","following_url":"https://api.github.com/users/sysadmind/following{/other_user}","gists_url":"https://api.github.com/users/sysadmind/gists{/gist_id}","starred_url":"https://api.github.com/users/sysadmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysadmind/subscriptions","organizations_url":"https://api.github.com/users/sysadmind/orgs","repos_url":"https://api.github.com/users/sysadmind/repos","events_url":"https://api.github.com/users/sysadmind/events{/privacy}","received_events_url":"https://api.github.com/users/sysadmind/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n - New Module Pull Request\r\n\r\n##### COMPONENT NAME\r\npulp_repo\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.0.1.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n\r\n```\r\n\r\n##### SUMMARY\r\nThis adds a module for working with pulp repos. http://www.pulpproject.org/. I added this under packaging/os because it seemed like the most relevant location for this module although it is not explicitly an os packaging module like others in this directory.\r\n\r\nI created a class that lines up with a pulp server and added methods for getting and setting repo properties. I chose this design because it closely resembles the actual design of pulp and keeps the code logically separated into small methods. \r\n\r\n```\r\nok: [L-Pulp101.localdomain]\r\n\r\n```","created_at":"2016-04-04T19:18:38Z","updated_at":"2016-08-16T14:15:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67d2d1a6921a45635b417d4aa7a5739891a4083b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1961/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1961/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/1961/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/e3cd73cbfb72b17ca9745b21b0642edec8bcbbf6","head":{"label":"sysadmind:pulp_repo","ref":"pulp_repo","sha":"e3cd73cbfb72b17ca9745b21b0642edec8bcbbf6","user":{"login":"sysadmind","id":2531691,"avatar_url":"https://avatars.githubusercontent.com/u/2531691?v=3","gravatar_id":"","url":"https://api.github.com/users/sysadmind","html_url":"https://github.com/sysadmind","followers_url":"https://api.github.com/users/sysadmind/followers","following_url":"https://api.github.com/users/sysadmind/following{/other_user}","gists_url":"https://api.github.com/users/sysadmind/gists{/gist_id}","starred_url":"https://api.github.com/users/sysadmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysadmind/subscriptions","organizations_url":"https://api.github.com/users/sysadmind/orgs","repos_url":"https://api.github.com/users/sysadmind/repos","events_url":"https://api.github.com/users/sysadmind/events{/privacy}","received_events_url":"https://api.github.com/users/sysadmind/received_events","type":"User","site_admin":false},"repo":{"id":35708347,"name":"ansible-modules-extras","full_name":"sysadmind/ansible-modules-extras","owner":{"login":"sysadmind","id":2531691,"avatar_url":"https://avatars.githubusercontent.com/u/2531691?v=3","gravatar_id":"","url":"https://api.github.com/users/sysadmind","html_url":"https://github.com/sysadmind","followers_url":"https://api.github.com/users/sysadmind/followers","following_url":"https://api.github.com/users/sysadmind/following{/other_user}","gists_url":"https://api.github.com/users/sysadmind/gists{/gist_id}","starred_url":"https://api.github.com/users/sysadmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysadmind/subscriptions","organizations_url":"https://api.github.com/users/sysadmind/orgs","repos_url":"https://api.github.com/users/sysadmind/repos","events_url":"https://api.github.com/users/sysadmind/events{/privacy}","received_events_url":"https://api.github.com/users/sysadmind/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sysadmind/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/sysadmind/ansible-modules-extras","forks_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/sysadmind/ansible-modules-extras/deployments","created_at":"2015-05-16T03:31:28Z","updated_at":"2016-06-23T18:23:50Z","pushed_at":"2016-08-04T15:50:28Z","git_url":"git://github.com/sysadmind/ansible-modules-extras.git","ssh_url":"git@github.com:sysadmind/ansible-modules-extras.git","clone_url":"https://github.com/sysadmind/ansible-modules-extras.git","svn_url":"https://github.com/sysadmind/ansible-modules-extras","homepage":"","size":7751,"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":"fc764553260e02bb7b36bf7c601685206d6f93cf","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}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/deployments","created_at":"2014-09-25T20:28:42Z","updated_at":"2016-08-16T10:09:07Z","pushed_at":"2016-08-16T14:12:37Z","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":50796,"stargazers_count":678,"watchers_count":678,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1394,"mirror_url":null,"open_issues_count":596,"forks":1394,"open_issues":596,"watchers":678,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1961"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1961"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1961"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1961/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1961/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/1961/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/e3cd73cbfb72b17ca9745b21b0642edec8bcbbf6"}}}}
{"actor":{"display_login":"jtyr"}}