{"action":"created","comment":{"url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/comments/75627417","id":75627417,"diff_hunk":"@@ -0,0 +1,83 @@\n+class eayunstack::upgrade::consul::consul (\n+  $fuel_settings,\n+) {\n+\t\n+  $nodes = $fuel_settings['nodes']\n+  $node = filter_nodes($nodes,'role','controller')\n+  $first_node = filter_nodes($nodes,'role','primary-controller')\n+\n+  $storage_ip1 = $first_node[0]['storage_address']\n+  $storage_ip2 = $node[0]['storage_address']\n+  $storage_ip3 = $node[1]['storage_address']\n+  $host_name1 = $first_node[0]['fqdn']\n+  $host_name2 = $node[0]['fqdn']\n+  $host_name3 = $node[1]['fqdn']\n+\n+  $host_names = [\"$host_name1\",\"$host_name2\",\"$host_name3\"]\n+  $host_name = $fuel_settings['fqdn']\n+","path":"puppet/modules/eayunstack/manifests/upgrade/consul/consul.pp","position":18,"original_position":18,"commit_id":"0b18582387b12b83ac10d1c3d7cc7654bb404535","original_commit_id":"0b18582387b12b83ac10d1c3d7cc7654bb404535","user":{"login":"zhouyang1222","id":19581845,"avatar_url":"https://avatars.githubusercontent.com/u/19581845?v=3","gravatar_id":"","url":"https://api.github.com/users/zhouyang1222","html_url":"https://github.com/zhouyang1222","followers_url":"https://api.github.com/users/zhouyang1222/followers","following_url":"https://api.github.com/users/zhouyang1222/following{/other_user}","gists_url":"https://api.github.com/users/zhouyang1222/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouyang1222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouyang1222/subscriptions","organizations_url":"https://api.github.com/users/zhouyang1222/orgs","repos_url":"https://api.github.com/users/zhouyang1222/repos","events_url":"https://api.github.com/users/zhouyang1222/events{/privacy}","received_events_url":"https://api.github.com/users/zhouyang1222/received_events","type":"User","site_admin":false},"body":"这里不是要把所有的controller取出来，consul集群需要3个server,所以我取了前三个controller,作为consul的server来部署，其它controller不部署consul","created_at":"2016-08-22T07:15:25Z","updated_at":"2016-08-22T07:15:25Z","html_url":"https://github.com/eayunstack/eayunstack-upgrade/pull/35#discussion_r75627417","pull_request_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/comments/75627417"},"html":{"href":"https://github.com/eayunstack/eayunstack-upgrade/pull/35#discussion_r75627417"},"pull_request":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35","id":82141481,"html_url":"https://github.com/eayunstack/eayunstack-upgrade/pull/35","diff_url":"https://github.com/eayunstack/eayunstack-upgrade/pull/35.diff","patch_url":"https://github.com/eayunstack/eayunstack-upgrade/pull/35.patch","issue_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/issues/35","number":35,"state":"open","locked":false,"title":"Consul","user":{"login":"zhouyang1222","id":19581845,"avatar_url":"https://avatars.githubusercontent.com/u/19581845?v=3","gravatar_id":"","url":"https://api.github.com/users/zhouyang1222","html_url":"https://github.com/zhouyang1222","followers_url":"https://api.github.com/users/zhouyang1222/followers","following_url":"https://api.github.com/users/zhouyang1222/following{/other_user}","gists_url":"https://api.github.com/users/zhouyang1222/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouyang1222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouyang1222/subscriptions","organizations_url":"https://api.github.com/users/zhouyang1222/orgs","repos_url":"https://api.github.com/users/zhouyang1222/repos","events_url":"https://api.github.com/users/zhouyang1222/events{/privacy}","received_events_url":"https://api.github.com/users/zhouyang1222/received_events","type":"User","site_admin":false},"body":"add consul.pp\r\n\r\nzhouyang <yang.zhou1222@gmail.com>","created_at":"2016-08-22T06:49:44Z","updated_at":"2016-08-22T07:15:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ed30f4b19acb1ef70b57d59f55e6867388439c8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35/commits","review_comments_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35/comments","review_comment_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/issues/35/comments","statuses_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/statuses/0b18582387b12b83ac10d1c3d7cc7654bb404535","head":{"label":"zhouyang1222:consul","ref":"consul","sha":"0b18582387b12b83ac10d1c3d7cc7654bb404535","user":{"login":"zhouyang1222","id":19581845,"avatar_url":"https://avatars.githubusercontent.com/u/19581845?v=3","gravatar_id":"","url":"https://api.github.com/users/zhouyang1222","html_url":"https://github.com/zhouyang1222","followers_url":"https://api.github.com/users/zhouyang1222/followers","following_url":"https://api.github.com/users/zhouyang1222/following{/other_user}","gists_url":"https://api.github.com/users/zhouyang1222/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouyang1222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouyang1222/subscriptions","organizations_url":"https://api.github.com/users/zhouyang1222/orgs","repos_url":"https://api.github.com/users/zhouyang1222/repos","events_url":"https://api.github.com/users/zhouyang1222/events{/privacy}","received_events_url":"https://api.github.com/users/zhouyang1222/received_events","type":"User","site_admin":false},"repo":{"id":66044839,"name":"eayunstack-upgrade","full_name":"zhouyang1222/eayunstack-upgrade","owner":{"login":"zhouyang1222","id":19581845,"avatar_url":"https://avatars.githubusercontent.com/u/19581845?v=3","gravatar_id":"","url":"https://api.github.com/users/zhouyang1222","html_url":"https://github.com/zhouyang1222","followers_url":"https://api.github.com/users/zhouyang1222/followers","following_url":"https://api.github.com/users/zhouyang1222/following{/other_user}","gists_url":"https://api.github.com/users/zhouyang1222/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouyang1222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouyang1222/subscriptions","organizations_url":"https://api.github.com/users/zhouyang1222/orgs","repos_url":"https://api.github.com/users/zhouyang1222/repos","events_url":"https://api.github.com/users/zhouyang1222/events{/privacy}","received_events_url":"https://api.github.com/users/zhouyang1222/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhouyang1222/eayunstack-upgrade","description":"Puppet bundle for upgrading the whole eayunstack","fork":true,"url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade","forks_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/forks","keys_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/teams","hooks_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/hooks","issue_events_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/issues/events{/number}","events_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/events","assignees_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/assignees{/user}","branches_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/branches{/branch}","tags_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/tags","blobs_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/languages","stargazers_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/stargazers","contributors_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/contributors","subscribers_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/subscribers","subscription_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/subscription","commits_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/contents/{+path}","compare_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/merges","archive_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/downloads","issues_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/issues{/number}","pulls_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/labels{/name}","releases_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/releases{/id}","deployments_url":"https://api.github.com/repos/zhouyang1222/eayunstack-upgrade/deployments","created_at":"2016-08-19T02:07:46Z","updated_at":"2016-08-19T02:07:47Z","pushed_at":"2016-08-22T06:46:26Z","git_url":"git://github.com/zhouyang1222/eayunstack-upgrade.git","ssh_url":"git@github.com:zhouyang1222/eayunstack-upgrade.git","clone_url":"https://github.com/zhouyang1222/eayunstack-upgrade.git","svn_url":"https://github.com/zhouyang1222/eayunstack-upgrade","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"eayunstack:master","ref":"master","sha":"36227bebb2c34fba31d2cfcafd3d0bc2f729b49e","user":{"login":"eayunstack","id":8656371,"avatar_url":"https://avatars.githubusercontent.com/u/8656371?v=3","gravatar_id":"","url":"https://api.github.com/users/eayunstack","html_url":"https://github.com/eayunstack","followers_url":"https://api.github.com/users/eayunstack/followers","following_url":"https://api.github.com/users/eayunstack/following{/other_user}","gists_url":"https://api.github.com/users/eayunstack/gists{/gist_id}","starred_url":"https://api.github.com/users/eayunstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eayunstack/subscriptions","organizations_url":"https://api.github.com/users/eayunstack/orgs","repos_url":"https://api.github.com/users/eayunstack/repos","events_url":"https://api.github.com/users/eayunstack/events{/privacy}","received_events_url":"https://api.github.com/users/eayunstack/received_events","type":"Organization","site_admin":false},"repo":{"id":48354515,"name":"eayunstack-upgrade","full_name":"eayunstack/eayunstack-upgrade","owner":{"login":"eayunstack","id":8656371,"avatar_url":"https://avatars.githubusercontent.com/u/8656371?v=3","gravatar_id":"","url":"https://api.github.com/users/eayunstack","html_url":"https://github.com/eayunstack","followers_url":"https://api.github.com/users/eayunstack/followers","following_url":"https://api.github.com/users/eayunstack/following{/other_user}","gists_url":"https://api.github.com/users/eayunstack/gists{/gist_id}","starred_url":"https://api.github.com/users/eayunstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eayunstack/subscriptions","organizations_url":"https://api.github.com/users/eayunstack/orgs","repos_url":"https://api.github.com/users/eayunstack/repos","events_url":"https://api.github.com/users/eayunstack/events{/privacy}","received_events_url":"https://api.github.com/users/eayunstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eayunstack/eayunstack-upgrade","description":"Puppet bundle for upgrading the whole eayunstack","fork":false,"url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade","forks_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/forks","keys_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/teams","hooks_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/hooks","issue_events_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/issues/events{/number}","events_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/events","assignees_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/assignees{/user}","branches_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/branches{/branch}","tags_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/tags","blobs_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/languages","stargazers_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/stargazers","contributors_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/contributors","subscribers_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/subscribers","subscription_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/subscription","commits_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/contents/{+path}","compare_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/merges","archive_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/downloads","issues_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/issues{/number}","pulls_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/labels{/name}","releases_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/releases{/id}","deployments_url":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/deployments","created_at":"2015-12-21T06:19:37Z","updated_at":"2016-08-08T10:32:20Z","pushed_at":"2016-08-22T06:49:44Z","git_url":"git://github.com/eayunstack/eayunstack-upgrade.git","ssh_url":"git@github.com:eayunstack/eayunstack-upgrade.git","clone_url":"https://github.com/eayunstack/eayunstack-upgrade.git","svn_url":"https://github.com/eayunstack/eayunstack-upgrade","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35"},"html":{"href":"https://github.com/eayunstack/eayunstack-upgrade/pull/35"},"issue":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/issues/35"},"comments":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/eayunstack/eayunstack-upgrade/statuses/0b18582387b12b83ac10d1c3d7cc7654bb404535"}}}}
{"actor":{"display_login":"zhouyang1222"}}