{"action":"created","comment":{"url":"https://api.github.com/repos/asteris-llc/converge/pulls/comments/79459394","id":79459394,"diff_hunk":"@@ -0,0 +1,41 @@\n+# converge-docker-swarm\n+\n+A converge sample that sets up a multi-node [Docker Swarm Mode](https://docs.docker.com/engine/swarm/) cluster on AWS.\n+\n+## Usage\n+\n+### Terraform (AWS)\n+\n+You must have a version of https://github.com/ChrisAubuchon/terraform-provisioner-converge built and configured as a plugin for terraform:\n+\n+```shell\n+$ cat ~/.terraformrc\n+provisioners {\n+  converge = \"/path/to/terraform-provisioner-converge\"\n+}%\n+```\n+\n+You must have also set valid [AWS credentials](https://www.terraform.io/docs/providers/aws/index.html) (`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`) in your environment. Then you can run:\n+\n+```\n+terraform apply\n+```\n+\n+When terraform provisioning completes, you should have a Docker Swarm mode cluster running with a single manager node and 2 (by default) worker nodes. If you want to change the number of worker nodes, you can update the `worker-count` variable in [main.tf](./main.tf).\n+\n+After the provisioning is complete, you should be able to ssh into your leader node and run docker swarm commands:\n+\n+```shell\n+$ ssh centos@$(terraform output manager-ip)\n+\n+[centos@ip-10-0-1-239 ~]$ docker node ls\n+ID                           HOSTNAME       STATUS  AVAILABILITY  MANAGER STATUS\n+4omysuebc73ixajlymum3rrvp    ip-10-0-1-40   Ready   Active\n+8dkplbxr7xluoyf0s91jumrr9 *  ip-10-0-1-239  Ready   Active        Leader\n+b1k1r5hx9xe4ek34azbdx0ghe    ip-10-0-1-186  Ready   Active\n+```\n+\n+## Notes\n+\n+* Uses the terraform graph engine to coordinate the timing of joining worker nodes to the cluster. The manager and worker nodes are created and provisioned in parallel. Then, using a null_resource, we join the workers to the cluster after the manager is initialized.\n+* Does not currently support multiple manager nodes.","path":"examples/docker-swarm-mode/README.md","position":41,"original_position":41,"commit_id":"47239dce3610ed6f22646adf2401fc0a3268e231","original_commit_id":"47239dce3610ed6f22646adf2401fc0a3268e231","user":{"login":"BrianHicks","id":355401,"avatar_url":"https://avatars.githubusercontent.com/u/355401?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianHicks","html_url":"https://github.com/BrianHicks","followers_url":"https://api.github.com/users/BrianHicks/followers","following_url":"https://api.github.com/users/BrianHicks/following{/other_user}","gists_url":"https://api.github.com/users/BrianHicks/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianHicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianHicks/subscriptions","organizations_url":"https://api.github.com/users/BrianHicks/orgs","repos_url":"https://api.github.com/users/BrianHicks/repos","events_url":"https://api.github.com/users/BrianHicks/events{/privacy}","received_events_url":"https://api.github.com/users/BrianHicks/received_events","type":"User","site_admin":false},"body":"Complete sentence here too","created_at":"2016-09-19T18:37:48Z","updated_at":"2016-09-19T18:41:59Z","html_url":"https://github.com/asteris-llc/converge/pull/267#discussion_r79459394","pull_request_url":"https://api.github.com/repos/asteris-llc/converge/pulls/267","_links":{"self":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/comments/79459394"},"html":{"href":"https://github.com/asteris-llc/converge/pull/267#discussion_r79459394"},"pull_request":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/267"}}},"pull_request":{"url":"https://api.github.com/repos/asteris-llc/converge/pulls/267","id":85839635,"html_url":"https://github.com/asteris-llc/converge/pull/267","diff_url":"https://github.com/asteris-llc/converge/pull/267.diff","patch_url":"https://github.com/asteris-llc/converge/pull/267.patch","issue_url":"https://api.github.com/repos/asteris-llc/converge/issues/267","number":267,"state":"open","locked":false,"title":"example: docker swarm mode","user":{"login":"ryane","id":7346,"avatar_url":"https://avatars.githubusercontent.com/u/7346?v=3","gravatar_id":"","url":"https://api.github.com/users/ryane","html_url":"https://github.com/ryane","followers_url":"https://api.github.com/users/ryane/followers","following_url":"https://api.github.com/users/ryane/following{/other_user}","gists_url":"https://api.github.com/users/ryane/gists{/gist_id}","starred_url":"https://api.github.com/users/ryane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryane/subscriptions","organizations_url":"https://api.github.com/users/ryane/orgs","repos_url":"https://api.github.com/users/ryane/repos","events_url":"https://api.github.com/users/ryane/events{/privacy}","received_events_url":"https://api.github.com/users/ryane/received_events","type":"User","site_admin":false},"body":"provisions a multi-node docker swarm mode cluster on AWS using terraform and converge","created_at":"2016-09-19T17:54:54Z","updated_at":"2016-09-19T18:41:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"634494e74910b210795a9794f2f8a897f8e5f41d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/asteris-llc/converge/pulls/267/commits","review_comments_url":"https://api.github.com/repos/asteris-llc/converge/pulls/267/comments","review_comment_url":"https://api.github.com/repos/asteris-llc/converge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asteris-llc/converge/issues/267/comments","statuses_url":"https://api.github.com/repos/asteris-llc/converge/statuses/47239dce3610ed6f22646adf2401fc0a3268e231","head":{"label":"asteris-llc:feature/example-swarm","ref":"feature/example-swarm","sha":"47239dce3610ed6f22646adf2401fc0a3268e231","user":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"repo":{"id":59234611,"name":"converge","full_name":"asteris-llc/converge","owner":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/asteris-llc/converge","description":"A next generation configuration management system.","fork":false,"url":"https://api.github.com/repos/asteris-llc/converge","forks_url":"https://api.github.com/repos/asteris-llc/converge/forks","keys_url":"https://api.github.com/repos/asteris-llc/converge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asteris-llc/converge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asteris-llc/converge/teams","hooks_url":"https://api.github.com/repos/asteris-llc/converge/hooks","issue_events_url":"https://api.github.com/repos/asteris-llc/converge/issues/events{/number}","events_url":"https://api.github.com/repos/asteris-llc/converge/events","assignees_url":"https://api.github.com/repos/asteris-llc/converge/assignees{/user}","branches_url":"https://api.github.com/repos/asteris-llc/converge/branches{/branch}","tags_url":"https://api.github.com/repos/asteris-llc/converge/tags","blobs_url":"https://api.github.com/repos/asteris-llc/converge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asteris-llc/converge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asteris-llc/converge/git/refs{/sha}","trees_url":"https://api.github.com/repos/asteris-llc/converge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asteris-llc/converge/statuses/{sha}","languages_url":"https://api.github.com/repos/asteris-llc/converge/languages","stargazers_url":"https://api.github.com/repos/asteris-llc/converge/stargazers","contributors_url":"https://api.github.com/repos/asteris-llc/converge/contributors","subscribers_url":"https://api.github.com/repos/asteris-llc/converge/subscribers","subscription_url":"https://api.github.com/repos/asteris-llc/converge/subscription","commits_url":"https://api.github.com/repos/asteris-llc/converge/commits{/sha}","git_commits_url":"https://api.github.com/repos/asteris-llc/converge/git/commits{/sha}","comments_url":"https://api.github.com/repos/asteris-llc/converge/comments{/number}","issue_comment_url":"https://api.github.com/repos/asteris-llc/converge/issues/comments{/number}","contents_url":"https://api.github.com/repos/asteris-llc/converge/contents/{+path}","compare_url":"https://api.github.com/repos/asteris-llc/converge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asteris-llc/converge/merges","archive_url":"https://api.github.com/repos/asteris-llc/converge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asteris-llc/converge/downloads","issues_url":"https://api.github.com/repos/asteris-llc/converge/issues{/number}","pulls_url":"https://api.github.com/repos/asteris-llc/converge/pulls{/number}","milestones_url":"https://api.github.com/repos/asteris-llc/converge/milestones{/number}","notifications_url":"https://api.github.com/repos/asteris-llc/converge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asteris-llc/converge/labels{/name}","releases_url":"https://api.github.com/repos/asteris-llc/converge/releases{/id}","deployments_url":"https://api.github.com/repos/asteris-llc/converge/deployments","created_at":"2016-05-19T19:11:26Z","updated_at":"2016-09-19T13:50:40Z","pushed_at":"2016-09-19T17:54:55Z","git_url":"git://github.com/asteris-llc/converge.git","ssh_url":"git@github.com:asteris-llc/converge.git","clone_url":"https://github.com/asteris-llc/converge.git","svn_url":"https://github.com/asteris-llc/converge","homepage":"","size":25991,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":56,"forks":2,"open_issues":56,"watchers":2,"default_branch":"master"}},"base":{"label":"asteris-llc:master","ref":"master","sha":"26306df7d2a5368a02805cd2d31d4bb4d89f3971","user":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"repo":{"id":59234611,"name":"converge","full_name":"asteris-llc/converge","owner":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/asteris-llc/converge","description":"A next generation configuration management system.","fork":false,"url":"https://api.github.com/repos/asteris-llc/converge","forks_url":"https://api.github.com/repos/asteris-llc/converge/forks","keys_url":"https://api.github.com/repos/asteris-llc/converge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asteris-llc/converge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asteris-llc/converge/teams","hooks_url":"https://api.github.com/repos/asteris-llc/converge/hooks","issue_events_url":"https://api.github.com/repos/asteris-llc/converge/issues/events{/number}","events_url":"https://api.github.com/repos/asteris-llc/converge/events","assignees_url":"https://api.github.com/repos/asteris-llc/converge/assignees{/user}","branches_url":"https://api.github.com/repos/asteris-llc/converge/branches{/branch}","tags_url":"https://api.github.com/repos/asteris-llc/converge/tags","blobs_url":"https://api.github.com/repos/asteris-llc/converge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asteris-llc/converge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asteris-llc/converge/git/refs{/sha}","trees_url":"https://api.github.com/repos/asteris-llc/converge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asteris-llc/converge/statuses/{sha}","languages_url":"https://api.github.com/repos/asteris-llc/converge/languages","stargazers_url":"https://api.github.com/repos/asteris-llc/converge/stargazers","contributors_url":"https://api.github.com/repos/asteris-llc/converge/contributors","subscribers_url":"https://api.github.com/repos/asteris-llc/converge/subscribers","subscription_url":"https://api.github.com/repos/asteris-llc/converge/subscription","commits_url":"https://api.github.com/repos/asteris-llc/converge/commits{/sha}","git_commits_url":"https://api.github.com/repos/asteris-llc/converge/git/commits{/sha}","comments_url":"https://api.github.com/repos/asteris-llc/converge/comments{/number}","issue_comment_url":"https://api.github.com/repos/asteris-llc/converge/issues/comments{/number}","contents_url":"https://api.github.com/repos/asteris-llc/converge/contents/{+path}","compare_url":"https://api.github.com/repos/asteris-llc/converge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asteris-llc/converge/merges","archive_url":"https://api.github.com/repos/asteris-llc/converge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asteris-llc/converge/downloads","issues_url":"https://api.github.com/repos/asteris-llc/converge/issues{/number}","pulls_url":"https://api.github.com/repos/asteris-llc/converge/pulls{/number}","milestones_url":"https://api.github.com/repos/asteris-llc/converge/milestones{/number}","notifications_url":"https://api.github.com/repos/asteris-llc/converge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asteris-llc/converge/labels{/name}","releases_url":"https://api.github.com/repos/asteris-llc/converge/releases{/id}","deployments_url":"https://api.github.com/repos/asteris-llc/converge/deployments","created_at":"2016-05-19T19:11:26Z","updated_at":"2016-09-19T13:50:40Z","pushed_at":"2016-09-19T17:54:55Z","git_url":"git://github.com/asteris-llc/converge.git","ssh_url":"git@github.com:asteris-llc/converge.git","clone_url":"https://github.com/asteris-llc/converge.git","svn_url":"https://github.com/asteris-llc/converge","homepage":"","size":25991,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":56,"forks":2,"open_issues":56,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/267"},"html":{"href":"https://github.com/asteris-llc/converge/pull/267"},"issue":{"href":"https://api.github.com/repos/asteris-llc/converge/issues/267"},"comments":{"href":"https://api.github.com/repos/asteris-llc/converge/issues/267/comments"},"review_comments":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/267/comments"},"review_comment":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/267/commits"},"statuses":{"href":"https://api.github.com/repos/asteris-llc/converge/statuses/47239dce3610ed6f22646adf2401fc0a3268e231"}}}}
{"actor":{"display_login":"BrianHicks"}}