{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/builderator/pulls/comments/48357909","id":48357909,"diff_hunk":"@@ -15,20 +15,22 @@ Vagrant.configure('2') do |config|\n \n   ## EC2 Provider\n   config.vm.provider '<%= ec2.provider %>' do |ec2, override|\n+    override.vm.box = '<%= ec2.box %>'\n+    override.vm.box_url = '<%= ec2.box_url %>'\n+    override.ssh.username = '<%= ec2.ssh_username %>'\n+\n+    ec2.region = '<%= ec2.region %>'\n     ec2.subnet_id = '<%= ec2.subnet_id %>'\n-    ec2.security_groups = <%= ec2.security_groups %>\n-    ec2.iam_instance_profile_arn = '<%= ec2.instance_profile %>'\n \n-<% unless ec2.public_ip -%>\n     ## VPN Connected VPC\n-    ec2.associate_public_ip = false\n-    ec2.ssh_host_attribute = :private_ip_address\n-<% end -%>\n-    ec2.region = '<%= ec2.region %>'\n+    ec2.associate_public_ip = <%= ec2.associate_public_ip %>\n+    ec2.ssh_host_attribute = :<%= ec2.ssh_host_attribute %>\n+\n     ec2.instance_type = '<%= ec2.instance_type %>'\n+    ec2.security_groups = <%= ec2.security_groups %>\n+    ec2.iam_instance_profile_arn = '<%= ec2.iam_instance_profile_arn %>'","path":"template/Vagrantfile.erb","position":24,"original_position":24,"commit_id":"97e254bcbeceaddaa0add6fe4e550ee126e0a6d0","original_commit_id":"97e254bcbeceaddaa0add6fe4e550ee126e0a6d0","user":{"login":"jmanero-r7","id":8549280,"avatar_url":"https://avatars.githubusercontent.com/u/8549280?v=3","gravatar_id":"","url":"https://api.github.com/users/jmanero-r7","html_url":"https://github.com/jmanero-r7","followers_url":"https://api.github.com/users/jmanero-r7/followers","following_url":"https://api.github.com/users/jmanero-r7/following{/other_user}","gists_url":"https://api.github.com/users/jmanero-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmanero-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmanero-r7/subscriptions","organizations_url":"https://api.github.com/users/jmanero-r7/orgs","repos_url":"https://api.github.com/users/jmanero-r7/repos","events_url":"https://api.github.com/users/jmanero-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jmanero-r7/received_events","type":"User","site_admin":false},"body":"This will become the working-directory Vagrantfile. If there are parameters here that you want to override for your workstation, they can also be set in `~/.builderator/Buildfile`","created_at":"2015-12-23T16:19:56Z","updated_at":"2015-12-23T16:19:56Z","html_url":"https://github.com/rapid7/builderator/pull/26#discussion_r48357909","pull_request_url":"https://api.github.com/repos/rapid7/builderator/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/rapid7/builderator/pulls/comments/48357909"},"html":{"href":"https://github.com/rapid7/builderator/pull/26#discussion_r48357909"},"pull_request":{"href":"https://api.github.com/repos/rapid7/builderator/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/builderator/pulls/26","id":54404642,"html_url":"https://github.com/rapid7/builderator/pull/26","diff_url":"https://github.com/rapid7/builderator/pull/26.diff","patch_url":"https://github.com/rapid7/builderator/pull/26.patch","issue_url":"https://api.github.com/repos/rapid7/builderator/issues/26","number":26,"state":"open","locked":false,"title":"Debug builders","user":{"login":"jmanero-r7","id":8549280,"avatar_url":"https://avatars.githubusercontent.com/u/8549280?v=3","gravatar_id":"","url":"https://api.github.com/users/jmanero-r7","html_url":"https://github.com/jmanero-r7","followers_url":"https://api.github.com/users/jmanero-r7/followers","following_url":"https://api.github.com/users/jmanero-r7/following{/other_user}","gists_url":"https://api.github.com/users/jmanero-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmanero-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmanero-r7/subscriptions","organizations_url":"https://api.github.com/users/jmanero-r7/orgs","repos_url":"https://api.github.com/users/jmanero-r7/repos","events_url":"https://api.github.com/users/jmanero-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jmanero-r7/received_events","type":"User","site_admin":false},"body":"* Fixes some mis-implementations in the EC2 providers for Packer and Vagrant.\r\n* Adds `ssh` and `status` tasks to the vagrant wrapper\r\n* Replaces `Mixlib::ShellOut` with `popen` to handle STDERR correctly","created_at":"2015-12-22T19:18:25Z","updated_at":"2015-12-23T16:19:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92a1afaf34412b7b295f113bc150dcee7119c8ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/builderator/pulls/26/commits","review_comments_url":"https://api.github.com/repos/rapid7/builderator/pulls/26/comments","review_comment_url":"https://api.github.com/repos/rapid7/builderator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/builderator/issues/26/comments","statuses_url":"https://api.github.com/repos/rapid7/builderator/statuses/97e254bcbeceaddaa0add6fe4e550ee126e0a6d0","head":{"label":"rapid7:debug-builders","ref":"debug-builders","sha":"97e254bcbeceaddaa0add6fe4e550ee126e0a6d0","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":38055832,"name":"builderator","full_name":"rapid7/builderator","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/builderator","description":"Tools to make CI Packer builds awesome","fork":false,"url":"https://api.github.com/repos/rapid7/builderator","forks_url":"https://api.github.com/repos/rapid7/builderator/forks","keys_url":"https://api.github.com/repos/rapid7/builderator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/builderator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/builderator/teams","hooks_url":"https://api.github.com/repos/rapid7/builderator/hooks","issue_events_url":"https://api.github.com/repos/rapid7/builderator/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/builderator/events","assignees_url":"https://api.github.com/repos/rapid7/builderator/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/builderator/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/builderator/tags","blobs_url":"https://api.github.com/repos/rapid7/builderator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/builderator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/builderator/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/builderator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/builderator/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/builderator/languages","stargazers_url":"https://api.github.com/repos/rapid7/builderator/stargazers","contributors_url":"https://api.github.com/repos/rapid7/builderator/contributors","subscribers_url":"https://api.github.com/repos/rapid7/builderator/subscribers","subscription_url":"https://api.github.com/repos/rapid7/builderator/subscription","commits_url":"https://api.github.com/repos/rapid7/builderator/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/builderator/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/builderator/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/builderator/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/builderator/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/builderator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/builderator/merges","archive_url":"https://api.github.com/repos/rapid7/builderator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/builderator/downloads","issues_url":"https://api.github.com/repos/rapid7/builderator/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/builderator/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/builderator/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/builderator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/builderator/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/builderator/releases{/id}","created_at":"2015-06-25T14:56:11Z","updated_at":"2015-06-26T15:40:53Z","pushed_at":"2015-12-23T15:13:31Z","git_url":"git://github.com/rapid7/builderator.git","ssh_url":"git@github.com:rapid7/builderator.git","clone_url":"https://github.com/rapid7/builderator.git","svn_url":"https://github.com/rapid7/builderator","homepage":null,"size":182,"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":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"e3f3fe0290d8b77d8e66f85a1876cdaf64125b7f","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":38055832,"name":"builderator","full_name":"rapid7/builderator","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/builderator","description":"Tools to make CI Packer builds awesome","fork":false,"url":"https://api.github.com/repos/rapid7/builderator","forks_url":"https://api.github.com/repos/rapid7/builderator/forks","keys_url":"https://api.github.com/repos/rapid7/builderator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/builderator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/builderator/teams","hooks_url":"https://api.github.com/repos/rapid7/builderator/hooks","issue_events_url":"https://api.github.com/repos/rapid7/builderator/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/builderator/events","assignees_url":"https://api.github.com/repos/rapid7/builderator/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/builderator/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/builderator/tags","blobs_url":"https://api.github.com/repos/rapid7/builderator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/builderator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/builderator/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/builderator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/builderator/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/builderator/languages","stargazers_url":"https://api.github.com/repos/rapid7/builderator/stargazers","contributors_url":"https://api.github.com/repos/rapid7/builderator/contributors","subscribers_url":"https://api.github.com/repos/rapid7/builderator/subscribers","subscription_url":"https://api.github.com/repos/rapid7/builderator/subscription","commits_url":"https://api.github.com/repos/rapid7/builderator/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/builderator/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/builderator/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/builderator/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/builderator/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/builderator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/builderator/merges","archive_url":"https://api.github.com/repos/rapid7/builderator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/builderator/downloads","issues_url":"https://api.github.com/repos/rapid7/builderator/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/builderator/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/builderator/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/builderator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/builderator/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/builderator/releases{/id}","created_at":"2015-06-25T14:56:11Z","updated_at":"2015-06-26T15:40:53Z","pushed_at":"2015-12-23T15:13:31Z","git_url":"git://github.com/rapid7/builderator.git","ssh_url":"git@github.com:rapid7/builderator.git","clone_url":"https://github.com/rapid7/builderator.git","svn_url":"https://github.com/rapid7/builderator","homepage":null,"size":182,"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":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/builderator/pulls/26"},"html":{"href":"https://github.com/rapid7/builderator/pull/26"},"issue":{"href":"https://api.github.com/repos/rapid7/builderator/issues/26"},"comments":{"href":"https://api.github.com/repos/rapid7/builderator/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/builderator/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/builderator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/builderator/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/builderator/statuses/97e254bcbeceaddaa0add6fe4e550ee126e0a6d0"}}}}