{"action":"created","comment":{"url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/comments/70427869","id":70427869,"diff_hunk":"@@ -1,6 +1,30 @@\n-{%- from \"rabbitmq/map.jinja\" import server with context -%}\n+{%- from \"rabbitmq/map.jinja\" import server,cluster with context -%}\n #!/bin/bash -e\n \n+{%- if cluster.get('enabled', False) %}\n+\n+# if NUM_NODES not passed, default to 3\n+NUM_NODES=${NUM_NODES:-3}\n+\n+# loop through number of nodes\n+for num in 1..${NUM_NODES}; do\n+  NODE_SERVICE_HOST=\"RABBITMQ_SERVER_NODE0${num}_SERVICE_HOST\"","path":"rabbitmq/files/entrypoint.sh","position":12,"original_position":12,"commit_id":"6e1d56de194d14d151087279936d53327dc3ce93","original_commit_id":"6e1d56de194d14d151087279936d53327dc3ce93","user":{"login":"fpytloun","id":948799,"avatar_url":"https://avatars.githubusercontent.com/u/948799?v=3","gravatar_id":"","url":"https://api.github.com/users/fpytloun","html_url":"https://github.com/fpytloun","followers_url":"https://api.github.com/users/fpytloun/followers","following_url":"https://api.github.com/users/fpytloun/following{/other_user}","gists_url":"https://api.github.com/users/fpytloun/gists{/gist_id}","starred_url":"https://api.github.com/users/fpytloun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpytloun/subscriptions","organizations_url":"https://api.github.com/users/fpytloun/orgs","repos_url":"https://api.github.com/users/fpytloun/repos","events_url":"https://api.github.com/users/fpytloun/events{/privacy}","received_events_url":"https://api.github.com/users/fpytloun/received_events","type":"User","site_admin":false},"body":"What if num will be 10 or more? :-)","created_at":"2016-07-12T12:29:19Z","updated_at":"2016-07-12T12:29:19Z","html_url":"https://github.com/tcpcloud/salt-formula-rabbitmq/pull/4#discussion_r70427869","pull_request_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/comments/70427869"},"html":{"href":"https://github.com/tcpcloud/salt-formula-rabbitmq/pull/4#discussion_r70427869"},"pull_request":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4","id":77102651,"html_url":"https://github.com/tcpcloud/salt-formula-rabbitmq/pull/4","diff_url":"https://github.com/tcpcloud/salt-formula-rabbitmq/pull/4.diff","patch_url":"https://github.com/tcpcloud/salt-formula-rabbitmq/pull/4.patch","issue_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/4","number":4,"state":"open","locked":false,"title":"Docker support for Rabbit cluster [WIP]","user":{"login":"pupapaik","id":7746321,"avatar_url":"https://avatars.githubusercontent.com/u/7746321?v=3","gravatar_id":"","url":"https://api.github.com/users/pupapaik","html_url":"https://github.com/pupapaik","followers_url":"https://api.github.com/users/pupapaik/followers","following_url":"https://api.github.com/users/pupapaik/following{/other_user}","gists_url":"https://api.github.com/users/pupapaik/gists{/gist_id}","starred_url":"https://api.github.com/users/pupapaik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pupapaik/subscriptions","organizations_url":"https://api.github.com/users/pupapaik/orgs","repos_url":"https://api.github.com/users/pupapaik/repos","events_url":"https://api.github.com/users/pupapaik/events{/privacy}","received_events_url":"https://api.github.com/users/pupapaik/received_events","type":"User","site_admin":false},"body":"Role independent for rabbitmq-cluster","created_at":"2016-07-12T11:20:58Z","updated_at":"2016-07-12T12:29:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cae2c9885fdcf2706a949f8a11001a4ed8e2bc8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4/commits","review_comments_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4/comments","review_comment_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/4/comments","statuses_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/statuses/6e1d56de194d14d151087279936d53327dc3ce93","head":{"label":"tcpcloud:docker-cluster","ref":"docker-cluster","sha":"6e1d56de194d14d151087279936d53327dc3ce93","user":{"login":"tcpcloud","id":8155954,"avatar_url":"https://avatars.githubusercontent.com/u/8155954?v=3","gravatar_id":"","url":"https://api.github.com/users/tcpcloud","html_url":"https://github.com/tcpcloud","followers_url":"https://api.github.com/users/tcpcloud/followers","following_url":"https://api.github.com/users/tcpcloud/following{/other_user}","gists_url":"https://api.github.com/users/tcpcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/tcpcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcpcloud/subscriptions","organizations_url":"https://api.github.com/users/tcpcloud/orgs","repos_url":"https://api.github.com/users/tcpcloud/repos","events_url":"https://api.github.com/users/tcpcloud/events{/privacy}","received_events_url":"https://api.github.com/users/tcpcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":43755593,"name":"salt-formula-rabbitmq","full_name":"tcpcloud/salt-formula-rabbitmq","owner":{"login":"tcpcloud","id":8155954,"avatar_url":"https://avatars.githubusercontent.com/u/8155954?v=3","gravatar_id":"","url":"https://api.github.com/users/tcpcloud","html_url":"https://github.com/tcpcloud","followers_url":"https://api.github.com/users/tcpcloud/followers","following_url":"https://api.github.com/users/tcpcloud/following{/other_user}","gists_url":"https://api.github.com/users/tcpcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/tcpcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcpcloud/subscriptions","organizations_url":"https://api.github.com/users/tcpcloud/orgs","repos_url":"https://api.github.com/users/tcpcloud/repos","events_url":"https://api.github.com/users/tcpcloud/events{/privacy}","received_events_url":"https://api.github.com/users/tcpcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tcpcloud/salt-formula-rabbitmq","description":null,"fork":false,"url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq","forks_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/forks","keys_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/teams","hooks_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/hooks","issue_events_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/events{/number}","events_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/events","assignees_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/assignees{/user}","branches_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/branches{/branch}","tags_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/tags","blobs_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/refs{/sha}","trees_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/statuses/{sha}","languages_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/languages","stargazers_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/stargazers","contributors_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/contributors","subscribers_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/subscribers","subscription_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/subscription","commits_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/commits{/sha}","git_commits_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/commits{/sha}","comments_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/comments{/number}","issue_comment_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/comments{/number}","contents_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/contents/{+path}","compare_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/merges","archive_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/downloads","issues_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues{/number}","pulls_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls{/number}","milestones_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/milestones{/number}","notifications_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/labels{/name}","releases_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/releases{/id}","deployments_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/deployments","created_at":"2015-10-06T14:22:40Z","updated_at":"2016-01-15T13:42:15Z","pushed_at":"2016-07-12T12:28:37Z","git_url":"git://github.com/tcpcloud/salt-formula-rabbitmq.git","ssh_url":"git@github.com:tcpcloud/salt-formula-rabbitmq.git","clone_url":"https://github.com/tcpcloud/salt-formula-rabbitmq.git","svn_url":"https://github.com/tcpcloud/salt-formula-rabbitmq","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"SaltStack","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tcpcloud:master","ref":"master","sha":"7cca8a468400626e5900db17ddbf0b0cb5663abd","user":{"login":"tcpcloud","id":8155954,"avatar_url":"https://avatars.githubusercontent.com/u/8155954?v=3","gravatar_id":"","url":"https://api.github.com/users/tcpcloud","html_url":"https://github.com/tcpcloud","followers_url":"https://api.github.com/users/tcpcloud/followers","following_url":"https://api.github.com/users/tcpcloud/following{/other_user}","gists_url":"https://api.github.com/users/tcpcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/tcpcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcpcloud/subscriptions","organizations_url":"https://api.github.com/users/tcpcloud/orgs","repos_url":"https://api.github.com/users/tcpcloud/repos","events_url":"https://api.github.com/users/tcpcloud/events{/privacy}","received_events_url":"https://api.github.com/users/tcpcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":43755593,"name":"salt-formula-rabbitmq","full_name":"tcpcloud/salt-formula-rabbitmq","owner":{"login":"tcpcloud","id":8155954,"avatar_url":"https://avatars.githubusercontent.com/u/8155954?v=3","gravatar_id":"","url":"https://api.github.com/users/tcpcloud","html_url":"https://github.com/tcpcloud","followers_url":"https://api.github.com/users/tcpcloud/followers","following_url":"https://api.github.com/users/tcpcloud/following{/other_user}","gists_url":"https://api.github.com/users/tcpcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/tcpcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcpcloud/subscriptions","organizations_url":"https://api.github.com/users/tcpcloud/orgs","repos_url":"https://api.github.com/users/tcpcloud/repos","events_url":"https://api.github.com/users/tcpcloud/events{/privacy}","received_events_url":"https://api.github.com/users/tcpcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tcpcloud/salt-formula-rabbitmq","description":null,"fork":false,"url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq","forks_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/forks","keys_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/teams","hooks_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/hooks","issue_events_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/events{/number}","events_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/events","assignees_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/assignees{/user}","branches_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/branches{/branch}","tags_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/tags","blobs_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/refs{/sha}","trees_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/statuses/{sha}","languages_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/languages","stargazers_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/stargazers","contributors_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/contributors","subscribers_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/subscribers","subscription_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/subscription","commits_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/commits{/sha}","git_commits_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/git/commits{/sha}","comments_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/comments{/number}","issue_comment_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/comments{/number}","contents_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/contents/{+path}","compare_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/merges","archive_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/downloads","issues_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues{/number}","pulls_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls{/number}","milestones_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/milestones{/number}","notifications_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/labels{/name}","releases_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/releases{/id}","deployments_url":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/deployments","created_at":"2015-10-06T14:22:40Z","updated_at":"2016-01-15T13:42:15Z","pushed_at":"2016-07-12T12:28:37Z","git_url":"git://github.com/tcpcloud/salt-formula-rabbitmq.git","ssh_url":"git@github.com:tcpcloud/salt-formula-rabbitmq.git","clone_url":"https://github.com/tcpcloud/salt-formula-rabbitmq.git","svn_url":"https://github.com/tcpcloud/salt-formula-rabbitmq","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"SaltStack","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4"},"html":{"href":"https://github.com/tcpcloud/salt-formula-rabbitmq/pull/4"},"issue":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/4"},"comments":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/tcpcloud/salt-formula-rabbitmq/statuses/6e1d56de194d14d151087279936d53327dc3ce93"}}}}
{"actor":{"display_login":"fpytloun"}}