{"action":"created","comment":{"url":"https://api.github.com/repos/joyent/triton-terraform/pulls/comments/47137510","id":47137510,"diff_hunk":"@@ -0,0 +1,48 @@\n+# See http://www.joyent.com/blog/introducing-hashicorp-terraform-for-joyent-triton\n+\n+provider \"triton\" {\n+  account = \"${var.triton_account}\"\n+  key = \"${var.triton_key_path}\"\n+  key_id = \"${var.triton_key_id}\"\n+  url = \"${var.triton_url}\"\n+}\n+\n+provider \"docker\" {\n+  host = \"${var.docker_host}\"\n+  cert_path = \"${var.docker_cert_path}\"\n+}\n+\n+resource \"docker_image\" \"nginx\" {\n+  name = \"nginx:latest\"\n+  keep_updated = true\n+}\n+\n+resource \"docker_container\" \"nginx\" {\n+  count = 1\n+  name = \"nginx-terraform-${format(\"%02d\", count.index+1)}\"\n+  image = \"${docker_image.nginx.latest}\"\n+  must_run = true\n+\n+  env = [\"env=test\", \"role=test\"]\n+\n+  ports {\n+    internal = 80\n+    external = 80\n+  }\n+}\n+\n+resource \"triton_machine\" \"testmachine\" {\n+  name = \"test-machine\"\n+  package = \"t4-standard-512M\"\n+  image = \"ffe82a0a-83d2-11e5-b5ac-f3e14f42f12d\"\n+\n+  count = 1\n+}\n+\n+resource \"triton_machine\" \"windowsmachine\" {\n+  name = \"win-test-terraform\"\n+  package = \"333814c2-b4a7-481f-9f86-73bb4122c7a3\"","path":"examples/triton-docker-combined/triton.tf","position":44,"original_position":44,"commit_id":"d5d0cef8c71cfc5cb88f74f1e6e785703c15faeb","original_commit_id":"d5d0cef8c71cfc5cb88f74f1e6e785703c15faeb","user":{"login":"misterbisson","id":1709697,"avatar_url":"https://avatars.githubusercontent.com/u/1709697?v=3","gravatar_id":"","url":"https://api.github.com/users/misterbisson","html_url":"https://github.com/misterbisson","followers_url":"https://api.github.com/users/misterbisson/followers","following_url":"https://api.github.com/users/misterbisson/following{/other_user}","gists_url":"https://api.github.com/users/misterbisson/gists{/gist_id}","starred_url":"https://api.github.com/users/misterbisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterbisson/subscriptions","organizations_url":"https://api.github.com/users/misterbisson/orgs","repos_url":"https://api.github.com/users/misterbisson/repos","events_url":"https://api.github.com/users/misterbisson/events{/privacy}","received_events_url":"https://api.github.com/users/misterbisson/received_events","type":"User","site_admin":false},"body":"Given your tests show that packages by name work, should we do that here too?","created_at":"2015-12-09T19:18:08Z","updated_at":"2015-12-09T19:18:08Z","html_url":"https://github.com/joyent/triton-terraform/pull/27#discussion_r47137510","pull_request_url":"https://api.github.com/repos/joyent/triton-terraform/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/joyent/triton-terraform/pulls/comments/47137510"},"html":{"href":"https://github.com/joyent/triton-terraform/pull/27#discussion_r47137510"},"pull_request":{"href":"https://api.github.com/repos/joyent/triton-terraform/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/joyent/triton-terraform/pulls/27","id":53159816,"html_url":"https://github.com/joyent/triton-terraform/pull/27","diff_url":"https://github.com/joyent/triton-terraform/pull/27.diff","patch_url":"https://github.com/joyent/triton-terraform/pull/27.patch","issue_url":"https://api.github.com/repos/joyent/triton-terraform/issues/27","number":27,"state":"open","locked":false,"title":"add example from blog post","user":{"login":"xer0x","id":58699,"avatar_url":"https://avatars.githubusercontent.com/u/58699?v=3","gravatar_id":"","url":"https://api.github.com/users/xer0x","html_url":"https://github.com/xer0x","followers_url":"https://api.github.com/users/xer0x/followers","following_url":"https://api.github.com/users/xer0x/following{/other_user}","gists_url":"https://api.github.com/users/xer0x/gists{/gist_id}","starred_url":"https://api.github.com/users/xer0x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xer0x/subscriptions","organizations_url":"https://api.github.com/users/xer0x/orgs","repos_url":"https://api.github.com/users/xer0x/repos","events_url":"https://api.github.com/users/xer0x/events{/privacy}","received_events_url":"https://api.github.com/users/xer0x/received_events","type":"User","site_admin":false},"body":"This adds the example .tf file from our introduction to terraform blog post. The example directory is styled after the official terraform examples.","created_at":"2015-12-09T18:39:17Z","updated_at":"2015-12-09T19:18:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4736a50264c1d29d69dddbf34e18f481715ef4ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joyent/triton-terraform/pulls/27/commits","review_comments_url":"https://api.github.com/repos/joyent/triton-terraform/pulls/27/comments","review_comment_url":"https://api.github.com/repos/joyent/triton-terraform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joyent/triton-terraform/issues/27/comments","statuses_url":"https://api.github.com/repos/joyent/triton-terraform/statuses/d5d0cef8c71cfc5cb88f74f1e6e785703c15faeb","head":{"label":"joyent:examples","ref":"examples","sha":"d5d0cef8c71cfc5cb88f74f1e6e785703c15faeb","user":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"repo":{"id":44345773,"name":"triton-terraform","full_name":"joyent/triton-terraform","owner":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joyent/triton-terraform","description":"","fork":false,"url":"https://api.github.com/repos/joyent/triton-terraform","forks_url":"https://api.github.com/repos/joyent/triton-terraform/forks","keys_url":"https://api.github.com/repos/joyent/triton-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joyent/triton-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joyent/triton-terraform/teams","hooks_url":"https://api.github.com/repos/joyent/triton-terraform/hooks","issue_events_url":"https://api.github.com/repos/joyent/triton-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/joyent/triton-terraform/events","assignees_url":"https://api.github.com/repos/joyent/triton-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/joyent/triton-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/joyent/triton-terraform/tags","blobs_url":"https://api.github.com/repos/joyent/triton-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joyent/triton-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joyent/triton-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/joyent/triton-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joyent/triton-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/joyent/triton-terraform/languages","stargazers_url":"https://api.github.com/repos/joyent/triton-terraform/stargazers","contributors_url":"https://api.github.com/repos/joyent/triton-terraform/contributors","subscribers_url":"https://api.github.com/repos/joyent/triton-terraform/subscribers","subscription_url":"https://api.github.com/repos/joyent/triton-terraform/subscription","commits_url":"https://api.github.com/repos/joyent/triton-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/joyent/triton-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/joyent/triton-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/joyent/triton-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/joyent/triton-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/joyent/triton-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joyent/triton-terraform/merges","archive_url":"https://api.github.com/repos/joyent/triton-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joyent/triton-terraform/downloads","issues_url":"https://api.github.com/repos/joyent/triton-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/joyent/triton-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/joyent/triton-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/joyent/triton-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joyent/triton-terraform/labels{/name}","releases_url":"https://api.github.com/repos/joyent/triton-terraform/releases{/id}","created_at":"2015-10-15T21:09:34Z","updated_at":"2015-12-04T22:41:26Z","pushed_at":"2015-12-09T19:04:33Z","git_url":"git://github.com/joyent/triton-terraform.git","ssh_url":"git@github.com:joyent/triton-terraform.git","clone_url":"https://github.com/joyent/triton-terraform.git","svn_url":"https://github.com/joyent/triton-terraform","homepage":null,"size":59,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":7,"default_branch":"master"}},"base":{"label":"joyent:master","ref":"master","sha":"514553afdd834e9fd486e09f923470d9fafc89f0","user":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"repo":{"id":44345773,"name":"triton-terraform","full_name":"joyent/triton-terraform","owner":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joyent/triton-terraform","description":"","fork":false,"url":"https://api.github.com/repos/joyent/triton-terraform","forks_url":"https://api.github.com/repos/joyent/triton-terraform/forks","keys_url":"https://api.github.com/repos/joyent/triton-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joyent/triton-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joyent/triton-terraform/teams","hooks_url":"https://api.github.com/repos/joyent/triton-terraform/hooks","issue_events_url":"https://api.github.com/repos/joyent/triton-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/joyent/triton-terraform/events","assignees_url":"https://api.github.com/repos/joyent/triton-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/joyent/triton-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/joyent/triton-terraform/tags","blobs_url":"https://api.github.com/repos/joyent/triton-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joyent/triton-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joyent/triton-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/joyent/triton-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joyent/triton-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/joyent/triton-terraform/languages","stargazers_url":"https://api.github.com/repos/joyent/triton-terraform/stargazers","contributors_url":"https://api.github.com/repos/joyent/triton-terraform/contributors","subscribers_url":"https://api.github.com/repos/joyent/triton-terraform/subscribers","subscription_url":"https://api.github.com/repos/joyent/triton-terraform/subscription","commits_url":"https://api.github.com/repos/joyent/triton-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/joyent/triton-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/joyent/triton-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/joyent/triton-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/joyent/triton-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/joyent/triton-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joyent/triton-terraform/merges","archive_url":"https://api.github.com/repos/joyent/triton-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joyent/triton-terraform/downloads","issues_url":"https://api.github.com/repos/joyent/triton-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/joyent/triton-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/joyent/triton-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/joyent/triton-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joyent/triton-terraform/labels{/name}","releases_url":"https://api.github.com/repos/joyent/triton-terraform/releases{/id}","created_at":"2015-10-15T21:09:34Z","updated_at":"2015-12-04T22:41:26Z","pushed_at":"2015-12-09T19:04:33Z","git_url":"git://github.com/joyent/triton-terraform.git","ssh_url":"git@github.com:joyent/triton-terraform.git","clone_url":"https://github.com/joyent/triton-terraform.git","svn_url":"https://github.com/joyent/triton-terraform","homepage":null,"size":59,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joyent/triton-terraform/pulls/27"},"html":{"href":"https://github.com/joyent/triton-terraform/pull/27"},"issue":{"href":"https://api.github.com/repos/joyent/triton-terraform/issues/27"},"comments":{"href":"https://api.github.com/repos/joyent/triton-terraform/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/joyent/triton-terraform/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/joyent/triton-terraform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joyent/triton-terraform/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/joyent/triton-terraform/statuses/d5d0cef8c71cfc5cb88f74f1e6e785703c15faeb"}}}}