{"action":"created","comment":{"url":"https://api.github.com/repos/Katello/katello/pulls/comments/56429460","id":56429460,"diff_hunk":"@@ -1,12 +1,18 @@\n <% if @host.params['kt_activation_keys'] %>\n-# add subscription manager\n-yum -t -y -e 0 install subscription-manager\n-rpm -ivh <%= subscription_manager_configuration_url(@host) %>\n+  # add subscription manager\n+ <% if @host.operatingsystem.name.match(/.*atomic.*/i) %>\n+  curl -s <%= subscription_manager_configuration_url(@host, false) %> | IS_ATOMIC=true bash","path":"app/views/foreman/unattended/snippets/_subscription_manager_registration.erb","position":7,"original_position":7,"commit_id":"e90aeb652fa62dbe9a8795913cc2d7441918d669","original_commit_id":"e90aeb652fa62dbe9a8795913cc2d7441918d669","user":{"login":"parthaa","id":1069779,"avatar_url":"https://avatars.githubusercontent.com/u/1069779?v=3","gravatar_id":"","url":"https://api.github.com/users/parthaa","html_url":"https://github.com/parthaa","followers_url":"https://api.github.com/users/parthaa/followers","following_url":"https://api.github.com/users/parthaa/following{/other_user}","gists_url":"https://api.github.com/users/parthaa/gists{/gist_id}","starred_url":"https://api.github.com/users/parthaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parthaa/subscriptions","organizations_url":"https://api.github.com/users/parthaa/orgs","repos_url":"https://api.github.com/users/parthaa/repos","events_url":"https://api.github.com/users/parthaa/events{/privacy}","received_events_url":"https://api.github.com/users/parthaa/received_events","type":"User","site_admin":false},"body":"Note this PR also needs this PR https://github.com/Katello/puppet-certs/pull/81 for full functionality. We need to add IS_ATOMIC var during provisioning for katello-rhsm-consumer to realize its on an atomic machine. ","created_at":"2016-03-16T22:48:47Z","updated_at":"2016-03-16T22:48:47Z","html_url":"https://github.com/Katello/katello/pull/5801#discussion_r56429460","pull_request_url":"https://api.github.com/repos/Katello/katello/pulls/5801","_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/56429460"},"html":{"href":"https://github.com/Katello/katello/pull/5801#discussion_r56429460"},"pull_request":{"href":"https://api.github.com/repos/Katello/katello/pulls/5801"}}},"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/5801","id":60267014,"html_url":"https://github.com/Katello/katello/pull/5801","diff_url":"https://github.com/Katello/katello/pull/5801.diff","patch_url":"https://github.com/Katello/katello/pull/5801.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/5801","number":5801,"state":"open","locked":false,"title":"Fixes #13843 - Enables registration of Atomic Instances","user":{"login":"parthaa","id":1069779,"avatar_url":"https://avatars.githubusercontent.com/u/1069779?v=3","gravatar_id":"","url":"https://api.github.com/users/parthaa","html_url":"https://github.com/parthaa","followers_url":"https://api.github.com/users/parthaa/followers","following_url":"https://api.github.com/users/parthaa/following{/other_user}","gists_url":"https://api.github.com/users/parthaa/gists{/gist_id}","starred_url":"https://api.github.com/users/parthaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parthaa/subscriptions","organizations_url":"https://api.github.com/users/parthaa/orgs","repos_url":"https://api.github.com/users/parthaa/repos","events_url":"https://api.github.com/users/parthaa/events{/privacy}","received_events_url":"https://api.github.com/users/parthaa/received_events","type":"User","site_admin":false},"body":"Added subscription manager bits to Atomic Provisioning templates\r\nto consumer content from Katello","created_at":"2016-02-23T00:30:54Z","updated_at":"2016-03-16T22:48:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ede023b53e867aa92d47662c575fedf7d564618a","assignee":{"login":"ehelms","id":293363,"avatar_url":"https://avatars.githubusercontent.com/u/293363?v=3","gravatar_id":"","url":"https://api.github.com/users/ehelms","html_url":"https://github.com/ehelms","followers_url":"https://api.github.com/users/ehelms/followers","following_url":"https://api.github.com/users/ehelms/following{/other_user}","gists_url":"https://api.github.com/users/ehelms/gists{/gist_id}","starred_url":"https://api.github.com/users/ehelms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehelms/subscriptions","organizations_url":"https://api.github.com/users/ehelms/orgs","repos_url":"https://api.github.com/users/ehelms/repos","events_url":"https://api.github.com/users/ehelms/events{/privacy}","received_events_url":"https://api.github.com/users/ehelms/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/5801/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/5801/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/5801/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/e90aeb652fa62dbe9a8795913cc2d7441918d669","head":{"label":"parthaa:ks-templates","ref":"ks-templates","sha":"e90aeb652fa62dbe9a8795913cc2d7441918d669","user":{"login":"parthaa","id":1069779,"avatar_url":"https://avatars.githubusercontent.com/u/1069779?v=3","gravatar_id":"","url":"https://api.github.com/users/parthaa","html_url":"https://github.com/parthaa","followers_url":"https://api.github.com/users/parthaa/followers","following_url":"https://api.github.com/users/parthaa/following{/other_user}","gists_url":"https://api.github.com/users/parthaa/gists{/gist_id}","starred_url":"https://api.github.com/users/parthaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parthaa/subscriptions","organizations_url":"https://api.github.com/users/parthaa/orgs","repos_url":"https://api.github.com/users/parthaa/repos","events_url":"https://api.github.com/users/parthaa/events{/privacy}","received_events_url":"https://api.github.com/users/parthaa/received_events","type":"User","site_admin":false},"repo":{"id":4150075,"name":"katello","full_name":"parthaa/katello","owner":{"login":"parthaa","id":1069779,"avatar_url":"https://avatars.githubusercontent.com/u/1069779?v=3","gravatar_id":"","url":"https://api.github.com/users/parthaa","html_url":"https://github.com/parthaa","followers_url":"https://api.github.com/users/parthaa/followers","following_url":"https://api.github.com/users/parthaa/following{/other_user}","gists_url":"https://api.github.com/users/parthaa/gists{/gist_id}","starred_url":"https://api.github.com/users/parthaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parthaa/subscriptions","organizations_url":"https://api.github.com/users/parthaa/orgs","repos_url":"https://api.github.com/users/parthaa/repos","events_url":"https://api.github.com/users/parthaa/events{/privacy}","received_events_url":"https://api.github.com/users/parthaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parthaa/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":true,"url":"https://api.github.com/repos/parthaa/katello","forks_url":"https://api.github.com/repos/parthaa/katello/forks","keys_url":"https://api.github.com/repos/parthaa/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parthaa/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parthaa/katello/teams","hooks_url":"https://api.github.com/repos/parthaa/katello/hooks","issue_events_url":"https://api.github.com/repos/parthaa/katello/issues/events{/number}","events_url":"https://api.github.com/repos/parthaa/katello/events","assignees_url":"https://api.github.com/repos/parthaa/katello/assignees{/user}","branches_url":"https://api.github.com/repos/parthaa/katello/branches{/branch}","tags_url":"https://api.github.com/repos/parthaa/katello/tags","blobs_url":"https://api.github.com/repos/parthaa/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parthaa/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parthaa/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/parthaa/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parthaa/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/parthaa/katello/languages","stargazers_url":"https://api.github.com/repos/parthaa/katello/stargazers","contributors_url":"https://api.github.com/repos/parthaa/katello/contributors","subscribers_url":"https://api.github.com/repos/parthaa/katello/subscribers","subscription_url":"https://api.github.com/repos/parthaa/katello/subscription","commits_url":"https://api.github.com/repos/parthaa/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/parthaa/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/parthaa/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/parthaa/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/parthaa/katello/contents/{+path}","compare_url":"https://api.github.com/repos/parthaa/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parthaa/katello/merges","archive_url":"https://api.github.com/repos/parthaa/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parthaa/katello/downloads","issues_url":"https://api.github.com/repos/parthaa/katello/issues{/number}","pulls_url":"https://api.github.com/repos/parthaa/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/parthaa/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/parthaa/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parthaa/katello/labels{/name}","releases_url":"https://api.github.com/repos/parthaa/katello/releases{/id}","deployments_url":"https://api.github.com/repos/parthaa/katello/deployments","created_at":"2012-04-26T17:15:07Z","updated_at":"2015-08-11T19:20:30Z","pushed_at":"2016-03-16T22:42:02Z","git_url":"git://github.com/parthaa/katello.git","ssh_url":"git@github.com:parthaa/katello.git","clone_url":"https://github.com/parthaa/katello.git","svn_url":"https://github.com/parthaa/katello","homepage":"katello.org","size":76012,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"base":{"label":"Katello:master","ref":"master","sha":"a6fbaafb34c066e63b2bd819b768f9d8571f9501","user":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"repo":{"id":4007018,"name":"katello","full_name":"Katello/katello","owner":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Katello/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":false,"url":"https://api.github.com/repos/Katello/katello","forks_url":"https://api.github.com/repos/Katello/katello/forks","keys_url":"https://api.github.com/repos/Katello/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Katello/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Katello/katello/teams","hooks_url":"https://api.github.com/repos/Katello/katello/hooks","issue_events_url":"https://api.github.com/repos/Katello/katello/issues/events{/number}","events_url":"https://api.github.com/repos/Katello/katello/events","assignees_url":"https://api.github.com/repos/Katello/katello/assignees{/user}","branches_url":"https://api.github.com/repos/Katello/katello/branches{/branch}","tags_url":"https://api.github.com/repos/Katello/katello/tags","blobs_url":"https://api.github.com/repos/Katello/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Katello/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Katello/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/Katello/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/Katello/katello/languages","stargazers_url":"https://api.github.com/repos/Katello/katello/stargazers","contributors_url":"https://api.github.com/repos/Katello/katello/contributors","subscribers_url":"https://api.github.com/repos/Katello/katello/subscribers","subscription_url":"https://api.github.com/repos/Katello/katello/subscription","commits_url":"https://api.github.com/repos/Katello/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/Katello/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/Katello/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/Katello/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/Katello/katello/contents/{+path}","compare_url":"https://api.github.com/repos/Katello/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Katello/katello/merges","archive_url":"https://api.github.com/repos/Katello/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Katello/katello/downloads","issues_url":"https://api.github.com/repos/Katello/katello/issues{/number}","pulls_url":"https://api.github.com/repos/Katello/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/Katello/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/Katello/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Katello/katello/labels{/name}","releases_url":"https://api.github.com/repos/Katello/katello/releases{/id}","deployments_url":"https://api.github.com/repos/Katello/katello/deployments","created_at":"2012-04-12T16:59:08Z","updated_at":"2016-03-14T10:21:01Z","pushed_at":"2016-03-16T22:42:03Z","git_url":"git://github.com/Katello/katello.git","ssh_url":"git@github.com:Katello/katello.git","clone_url":"https://github.com/Katello/katello.git","svn_url":"https://github.com/Katello/katello","homepage":"katello.org","size":96075,"stargazers_count":177,"watchers_count":177,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":122,"mirror_url":null,"open_issues_count":103,"forks":122,"open_issues":103,"watchers":177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/5801"},"html":{"href":"https://github.com/Katello/katello/pull/5801"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/5801"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/5801/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/5801/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/5801/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/e90aeb652fa62dbe9a8795913cc2d7441918d669"}}}}