{"action":"created","comment":{"url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/comments/52295473","id":52295473,"diff_hunk":"@@ -0,0 +1,19 @@\n+<?xml version='1.0' encoding='UTF-8'?>\n+<slave>\n+  <name>{{ item.key }}</name>\n+  <description> {{item.value.description }} </description>\n+  <remoteFS>/tmp</remoteFS>\n+  <numExecutors>1</numExecutors>\n+  <mode>NORMAL</mode>\n+  <retentionStrategy class=\"hudson.slaves.RetentionStrategy$Always\"/>\n+  <launcher class=\"hudson.plugins.sshslaves.SSHLauncher\" plugin=\"ssh-slaves@1.9\">\n+    <host>{{ item.value.ip }}</host>\n+    <port>22</port>","path":"roles/local.Azulinho.azulinho-jenkins-server/templates/nodes/node_name/config.xml.j2","position":11,"original_position":11,"commit_id":"9031238acd389cb9b97fa5eb7cfbcb3077fb04ac","original_commit_id":"9031238acd389cb9b97fa5eb7cfbcb3077fb04ac","user":{"login":"Azulinho","id":851757,"avatar_url":"https://avatars.githubusercontent.com/u/851757?v=3","gravatar_id":"","url":"https://api.github.com/users/Azulinho","html_url":"https://github.com/Azulinho","followers_url":"https://api.github.com/users/Azulinho/followers","following_url":"https://api.github.com/users/Azulinho/following{/other_user}","gists_url":"https://api.github.com/users/Azulinho/gists{/gist_id}","starred_url":"https://api.github.com/users/Azulinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azulinho/subscriptions","organizations_url":"https://api.github.com/users/Azulinho/orgs","repos_url":"https://api.github.com/users/Azulinho/repos","events_url":"https://api.github.com/users/Azulinho/events{/privacy}","received_events_url":"https://api.github.com/users/Azulinho/received_events","type":"User","site_admin":false},"body":"this is where this approach breaks.\r\n\r\nIf I spin up a test jenkins-master, my master would connect to the same GCE slaves as the live one.\r\nWhich would cause trouble to all man kind\r\ncats and dogs sleeping together","created_at":"2016-02-09T11:24:09Z","updated_at":"2016-02-09T11:24:09Z","html_url":"https://github.com/ClusterHQ/ci-platform/pull/19#discussion_r52295473","pull_request_url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/comments/52295473"},"html":{"href":"https://github.com/ClusterHQ/ci-platform/pull/19#discussion_r52295473"},"pull_request":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19","id":58690539,"html_url":"https://github.com/ClusterHQ/ci-platform/pull/19","diff_url":"https://github.com/ClusterHQ/ci-platform/pull/19.diff","patch_url":"https://github.com/ClusterHQ/ci-platform/pull/19.patch","issue_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/19","number":19,"state":"open","locked":false,"title":"Gce static slaves","user":{"login":"justnoise","id":1495497,"avatar_url":"https://avatars.githubusercontent.com/u/1495497?v=3","gravatar_id":"","url":"https://api.github.com/users/justnoise","html_url":"https://github.com/justnoise","followers_url":"https://api.github.com/users/justnoise/followers","following_url":"https://api.github.com/users/justnoise/following{/other_user}","gists_url":"https://api.github.com/users/justnoise/gists{/gist_id}","starred_url":"https://api.github.com/users/justnoise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justnoise/subscriptions","organizations_url":"https://api.github.com/users/justnoise/orgs","repos_url":"https://api.github.com/users/justnoise/repos","events_url":"https://api.github.com/users/justnoise/events{/privacy}","received_events_url":"https://api.github.com/users/justnoise/received_events","type":"User","site_admin":false},"body":"Since we cannot dynamically launch GCE slaves from jenkins, we must configure Jenkins to have a couple of GCE static slaves attached to it.  This PR creates the node configuration on the master from data in segredos.  A corresponding PR for segredos is forthcoming.","created_at":"2016-02-09T00:43:40Z","updated_at":"2016-02-09T11:24:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53742e1dccefe02c52d563e6f184396ff40b2299","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19/commits","review_comments_url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19/comments","review_comment_url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/19/comments","statuses_url":"https://api.github.com/repos/ClusterHQ/ci-platform/statuses/9031238acd389cb9b97fa5eb7cfbcb3077fb04ac","head":{"label":"ClusterHQ:gce_static_slaves","ref":"gce_static_slaves","sha":"9031238acd389cb9b97fa5eb7cfbcb3077fb04ac","user":{"login":"ClusterHQ","id":7913449,"avatar_url":"https://avatars.githubusercontent.com/u/7913449?v=3","gravatar_id":"","url":"https://api.github.com/users/ClusterHQ","html_url":"https://github.com/ClusterHQ","followers_url":"https://api.github.com/users/ClusterHQ/followers","following_url":"https://api.github.com/users/ClusterHQ/following{/other_user}","gists_url":"https://api.github.com/users/ClusterHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ClusterHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClusterHQ/subscriptions","organizations_url":"https://api.github.com/users/ClusterHQ/orgs","repos_url":"https://api.github.com/users/ClusterHQ/repos","events_url":"https://api.github.com/users/ClusterHQ/events{/privacy}","received_events_url":"https://api.github.com/users/ClusterHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":39343994,"name":"ci-platform","full_name":"ClusterHQ/ci-platform","owner":{"login":"ClusterHQ","id":7913449,"avatar_url":"https://avatars.githubusercontent.com/u/7913449?v=3","gravatar_id":"","url":"https://api.github.com/users/ClusterHQ","html_url":"https://github.com/ClusterHQ","followers_url":"https://api.github.com/users/ClusterHQ/followers","following_url":"https://api.github.com/users/ClusterHQ/following{/other_user}","gists_url":"https://api.github.com/users/ClusterHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ClusterHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClusterHQ/subscriptions","organizations_url":"https://api.github.com/users/ClusterHQ/orgs","repos_url":"https://api.github.com/users/ClusterHQ/repos","events_url":"https://api.github.com/users/ClusterHQ/events{/privacy}","received_events_url":"https://api.github.com/users/ClusterHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ClusterHQ/ci-platform","description":"CI platform","fork":false,"url":"https://api.github.com/repos/ClusterHQ/ci-platform","forks_url":"https://api.github.com/repos/ClusterHQ/ci-platform/forks","keys_url":"https://api.github.com/repos/ClusterHQ/ci-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClusterHQ/ci-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClusterHQ/ci-platform/teams","hooks_url":"https://api.github.com/repos/ClusterHQ/ci-platform/hooks","issue_events_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/events{/number}","events_url":"https://api.github.com/repos/ClusterHQ/ci-platform/events","assignees_url":"https://api.github.com/repos/ClusterHQ/ci-platform/assignees{/user}","branches_url":"https://api.github.com/repos/ClusterHQ/ci-platform/branches{/branch}","tags_url":"https://api.github.com/repos/ClusterHQ/ci-platform/tags","blobs_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClusterHQ/ci-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/ClusterHQ/ci-platform/languages","stargazers_url":"https://api.github.com/repos/ClusterHQ/ci-platform/stargazers","contributors_url":"https://api.github.com/repos/ClusterHQ/ci-platform/contributors","subscribers_url":"https://api.github.com/repos/ClusterHQ/ci-platform/subscribers","subscription_url":"https://api.github.com/repos/ClusterHQ/ci-platform/subscription","commits_url":"https://api.github.com/repos/ClusterHQ/ci-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClusterHQ/ci-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClusterHQ/ci-platform/contents/{+path}","compare_url":"https://api.github.com/repos/ClusterHQ/ci-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClusterHQ/ci-platform/merges","archive_url":"https://api.github.com/repos/ClusterHQ/ci-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClusterHQ/ci-platform/downloads","issues_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues{/number}","pulls_url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/ClusterHQ/ci-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/ClusterHQ/ci-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClusterHQ/ci-platform/labels{/name}","releases_url":"https://api.github.com/repos/ClusterHQ/ci-platform/releases{/id}","deployments_url":"https://api.github.com/repos/ClusterHQ/ci-platform/deployments","created_at":"2015-07-19T18:21:02Z","updated_at":"2016-01-12T15:27:33Z","pushed_at":"2016-02-09T00:43:41Z","git_url":"git://github.com/ClusterHQ/ci-platform.git","ssh_url":"git@github.com:ClusterHQ/ci-platform.git","clone_url":"https://github.com/ClusterHQ/ci-platform.git","svn_url":"https://github.com/ClusterHQ/ci-platform","homepage":null,"size":152,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"ClusterHQ:master","ref":"master","sha":"bfe958bd045f2cc22de4ec981bb8474e6f0120da","user":{"login":"ClusterHQ","id":7913449,"avatar_url":"https://avatars.githubusercontent.com/u/7913449?v=3","gravatar_id":"","url":"https://api.github.com/users/ClusterHQ","html_url":"https://github.com/ClusterHQ","followers_url":"https://api.github.com/users/ClusterHQ/followers","following_url":"https://api.github.com/users/ClusterHQ/following{/other_user}","gists_url":"https://api.github.com/users/ClusterHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ClusterHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClusterHQ/subscriptions","organizations_url":"https://api.github.com/users/ClusterHQ/orgs","repos_url":"https://api.github.com/users/ClusterHQ/repos","events_url":"https://api.github.com/users/ClusterHQ/events{/privacy}","received_events_url":"https://api.github.com/users/ClusterHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":39343994,"name":"ci-platform","full_name":"ClusterHQ/ci-platform","owner":{"login":"ClusterHQ","id":7913449,"avatar_url":"https://avatars.githubusercontent.com/u/7913449?v=3","gravatar_id":"","url":"https://api.github.com/users/ClusterHQ","html_url":"https://github.com/ClusterHQ","followers_url":"https://api.github.com/users/ClusterHQ/followers","following_url":"https://api.github.com/users/ClusterHQ/following{/other_user}","gists_url":"https://api.github.com/users/ClusterHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ClusterHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClusterHQ/subscriptions","organizations_url":"https://api.github.com/users/ClusterHQ/orgs","repos_url":"https://api.github.com/users/ClusterHQ/repos","events_url":"https://api.github.com/users/ClusterHQ/events{/privacy}","received_events_url":"https://api.github.com/users/ClusterHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ClusterHQ/ci-platform","description":"CI platform","fork":false,"url":"https://api.github.com/repos/ClusterHQ/ci-platform","forks_url":"https://api.github.com/repos/ClusterHQ/ci-platform/forks","keys_url":"https://api.github.com/repos/ClusterHQ/ci-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClusterHQ/ci-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClusterHQ/ci-platform/teams","hooks_url":"https://api.github.com/repos/ClusterHQ/ci-platform/hooks","issue_events_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/events{/number}","events_url":"https://api.github.com/repos/ClusterHQ/ci-platform/events","assignees_url":"https://api.github.com/repos/ClusterHQ/ci-platform/assignees{/user}","branches_url":"https://api.github.com/repos/ClusterHQ/ci-platform/branches{/branch}","tags_url":"https://api.github.com/repos/ClusterHQ/ci-platform/tags","blobs_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClusterHQ/ci-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/ClusterHQ/ci-platform/languages","stargazers_url":"https://api.github.com/repos/ClusterHQ/ci-platform/stargazers","contributors_url":"https://api.github.com/repos/ClusterHQ/ci-platform/contributors","subscribers_url":"https://api.github.com/repos/ClusterHQ/ci-platform/subscribers","subscription_url":"https://api.github.com/repos/ClusterHQ/ci-platform/subscription","commits_url":"https://api.github.com/repos/ClusterHQ/ci-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClusterHQ/ci-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClusterHQ/ci-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClusterHQ/ci-platform/contents/{+path}","compare_url":"https://api.github.com/repos/ClusterHQ/ci-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClusterHQ/ci-platform/merges","archive_url":"https://api.github.com/repos/ClusterHQ/ci-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClusterHQ/ci-platform/downloads","issues_url":"https://api.github.com/repos/ClusterHQ/ci-platform/issues{/number}","pulls_url":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/ClusterHQ/ci-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/ClusterHQ/ci-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClusterHQ/ci-platform/labels{/name}","releases_url":"https://api.github.com/repos/ClusterHQ/ci-platform/releases{/id}","deployments_url":"https://api.github.com/repos/ClusterHQ/ci-platform/deployments","created_at":"2015-07-19T18:21:02Z","updated_at":"2016-01-12T15:27:33Z","pushed_at":"2016-02-09T00:43:41Z","git_url":"git://github.com/ClusterHQ/ci-platform.git","ssh_url":"git@github.com:ClusterHQ/ci-platform.git","clone_url":"https://github.com/ClusterHQ/ci-platform.git","svn_url":"https://github.com/ClusterHQ/ci-platform","homepage":null,"size":152,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19"},"html":{"href":"https://github.com/ClusterHQ/ci-platform/pull/19"},"issue":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/19"},"comments":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/ClusterHQ/ci-platform/statuses/9031238acd389cb9b97fa5eb7cfbcb3077fb04ac"}}}}