{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/comments/51674236","id":51674236,"diff_hunk":"@@ -0,0 +1,68 @@\n+# == Class: robottelo_slave::auto_cloud_swarm\n+#   Automatically setup everything needed to get a host from blank OS install up\n+#   to a fully functioning slave registered to Jenkins with the swarm plugin\n+#\n+# === Parameters\n+#\n+# [*jenkins_master*]\n+#   The jenkins master server to attach to\n+#\n+class robottelo_slave::auto_cloud_swarm(\n+  $jenkins_master = undef,\n+  $jenkins_user   = undef,\n+  $jenkins_pwd    = undef,\n+  $jenkins_labels = 'builders',\n+  $slave_user     = 'jenkins',\n+) {\n+  yumrepo { 'epel-temp':\n+    mirrorlist => 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch',\n+    gpgcheck   => 0,\n+    enabled    => 1,\n+  } ->\n+  package {'epel-release':\n+    ensure => 'latest',\n+    before => [\n+      Package['mock', 'tito', 'git-annex', 'koji', 'npm'],\n+      Class['robottelo_slave'],\n+    ],\n+  }\n+\n+  ensure_resource('group', $slave_user, { 'ensure' => 'present' })\n+  ensure_resource('user', $slave_user, { 'ensure' => 'present' })\n+  User<| title == $slave_user |> {\n+    managehome => true,\n+    gid        => $slave_user,\n+    groups     => [$slave_user, 'mock'],\n+    require    => Package['mock'],\n+  }\n+  User[$slave_user] -> Class['robottelo_slave']\n+\n+  include ::robottelo_slave::brew\n+  ensure_packages(['mock'])","path":"manifests/auto_cloud_swarm.pp","position":41,"original_position":41,"commit_id":"a862d2a4a068bb9d72e4ffc939b673192f64f8db","original_commit_id":"a862d2a4a068bb9d72e4ffc939b673192f64f8db","user":{"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},"body":"OK - I wasn't sure if this class should strictly handle configuring the jenkins slave aspect and the \"builder\" related packages etc. should be covered separately.","created_at":"2016-02-03T03:22:22Z","updated_at":"2016-02-03T03:22:22Z","html_url":"https://github.com/SatelliteQE/puppet-robottelo_slave/pull/9#discussion_r51674236","pull_request_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/comments/51674236"},"html":{"href":"https://github.com/SatelliteQE/puppet-robottelo_slave/pull/9#discussion_r51674236"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9","id":57974566,"html_url":"https://github.com/SatelliteQE/puppet-robottelo_slave/pull/9","diff_url":"https://github.com/SatelliteQE/puppet-robottelo_slave/pull/9.diff","patch_url":"https://github.com/SatelliteQE/puppet-robottelo_slave/pull/9.patch","issue_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/issues/9","number":9,"state":"open","locked":false,"title":"Adding class for creating slaves from scratch","user":{"login":"ifireball","id":918532,"avatar_url":"https://avatars.githubusercontent.com/u/918532?v=3","gravatar_id":"","url":"https://api.github.com/users/ifireball","html_url":"https://github.com/ifireball","followers_url":"https://api.github.com/users/ifireball/followers","following_url":"https://api.github.com/users/ifireball/following{/other_user}","gists_url":"https://api.github.com/users/ifireball/gists{/gist_id}","starred_url":"https://api.github.com/users/ifireball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifireball/subscriptions","organizations_url":"https://api.github.com/users/ifireball/orgs","repos_url":"https://api.github.com/users/ifireball/repos","events_url":"https://api.github.com/users/ifireball/events{/privacy}","received_events_url":"https://api.github.com/users/ifireball/received_events","type":"User","site_admin":false},"body":"- Will make use of the 'swarm' plugin to register to jenkins\r\n- Work around various issue in 3rd party modules that prevent configuration from converging done in a single Puppet run","created_at":"2016-02-02T11:36:23Z","updated_at":"2016-02-03T03:22:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faa7787302b8963a7fa09861465d73be2ffeeb59","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/issues/9/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/statuses/a862d2a4a068bb9d72e4ffc939b673192f64f8db","head":{"label":"ifireball:auto_cloud_swarm","ref":"auto_cloud_swarm","sha":"a862d2a4a068bb9d72e4ffc939b673192f64f8db","user":{"login":"ifireball","id":918532,"avatar_url":"https://avatars.githubusercontent.com/u/918532?v=3","gravatar_id":"","url":"https://api.github.com/users/ifireball","html_url":"https://github.com/ifireball","followers_url":"https://api.github.com/users/ifireball/followers","following_url":"https://api.github.com/users/ifireball/following{/other_user}","gists_url":"https://api.github.com/users/ifireball/gists{/gist_id}","starred_url":"https://api.github.com/users/ifireball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifireball/subscriptions","organizations_url":"https://api.github.com/users/ifireball/orgs","repos_url":"https://api.github.com/users/ifireball/repos","events_url":"https://api.github.com/users/ifireball/events{/privacy}","received_events_url":"https://api.github.com/users/ifireball/received_events","type":"User","site_admin":false},"repo":{"id":47180245,"name":"puppet-robottelo_slave","full_name":"ifireball/puppet-robottelo_slave","owner":{"login":"ifireball","id":918532,"avatar_url":"https://avatars.githubusercontent.com/u/918532?v=3","gravatar_id":"","url":"https://api.github.com/users/ifireball","html_url":"https://github.com/ifireball","followers_url":"https://api.github.com/users/ifireball/followers","following_url":"https://api.github.com/users/ifireball/following{/other_user}","gists_url":"https://api.github.com/users/ifireball/gists{/gist_id}","starred_url":"https://api.github.com/users/ifireball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifireball/subscriptions","organizations_url":"https://api.github.com/users/ifireball/orgs","repos_url":"https://api.github.com/users/ifireball/repos","events_url":"https://api.github.com/users/ifireball/events{/privacy}","received_events_url":"https://api.github.com/users/ifireball/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ifireball/puppet-robottelo_slave","description":"","fork":true,"url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave","forks_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/forks","keys_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/teams","hooks_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/hooks","issue_events_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/issues/events{/number}","events_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/events","assignees_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/assignees{/user}","branches_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/branches{/branch}","tags_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/tags","blobs_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/git/refs{/sha}","trees_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/statuses/{sha}","languages_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/languages","stargazers_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/stargazers","contributors_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/contributors","subscribers_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/subscribers","subscription_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/subscription","commits_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/commits{/sha}","git_commits_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/git/commits{/sha}","comments_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/comments{/number}","issue_comment_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/issues/comments{/number}","contents_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/contents/{+path}","compare_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/merges","archive_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/downloads","issues_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/issues{/number}","pulls_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/pulls{/number}","milestones_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/milestones{/number}","notifications_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/labels{/name}","releases_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/releases{/id}","deployments_url":"https://api.github.com/repos/ifireball/puppet-robottelo_slave/deployments","created_at":"2015-12-01T09:46:15Z","updated_at":"2016-01-31T14:43:36Z","pushed_at":"2016-02-02T13:06:21Z","git_url":"git://github.com/ifireball/puppet-robottelo_slave.git","ssh_url":"git@github.com:ifireball/puppet-robottelo_slave.git","clone_url":"https://github.com/ifireball/puppet-robottelo_slave.git","svn_url":"https://github.com/ifireball/puppet-robottelo_slave","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SatelliteQE:master","ref":"master","sha":"efa24b4677efb4c3975cf08f85c8571f8f024b78","user":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"repo":{"id":44836126,"name":"puppet-robottelo_slave","full_name":"SatelliteQE/puppet-robottelo_slave","owner":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SatelliteQE/puppet-robottelo_slave","description":"","fork":false,"url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave","forks_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/forks","keys_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/teams","hooks_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/hooks","issue_events_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/issues/events{/number}","events_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/events","assignees_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/assignees{/user}","branches_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/branches{/branch}","tags_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/tags","blobs_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/git/refs{/sha}","trees_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/statuses/{sha}","languages_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/languages","stargazers_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/stargazers","contributors_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/contributors","subscribers_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/subscribers","subscription_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/subscription","commits_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/commits{/sha}","git_commits_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/git/commits{/sha}","comments_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/comments{/number}","issue_comment_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/issues/comments{/number}","contents_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/contents/{+path}","compare_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/merges","archive_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/downloads","issues_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/issues{/number}","pulls_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls{/number}","milestones_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/milestones{/number}","notifications_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/labels{/name}","releases_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/releases{/id}","deployments_url":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/deployments","created_at":"2015-10-23T20:13:33Z","updated_at":"2016-01-31T07:52:25Z","pushed_at":"2016-02-02T18:44:51Z","git_url":"git://github.com/SatelliteQE/puppet-robottelo_slave.git","ssh_url":"git@github.com:SatelliteQE/puppet-robottelo_slave.git","clone_url":"https://github.com/SatelliteQE/puppet-robottelo_slave.git","svn_url":"https://github.com/SatelliteQE/puppet-robottelo_slave","homepage":null,"size":25,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9"},"html":{"href":"https://github.com/SatelliteQE/puppet-robottelo_slave/pull/9"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/issues/9"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/puppet-robottelo_slave/statuses/a862d2a4a068bb9d72e4ffc939b673192f64f8db"}}}}