{"action":"created","comment":{"url":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/comments/29243913","id":29243913,"diff_hunk":"@@ -42,22 +43,47 @@ def findip()\n end\n \n Vagrant.configure(\"2\") do |config|\n+\n   config.vm.box = \"opscode-ubuntu-14.04\"\n   config.vm.box_url = \"http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box\"\n+  config.vm.synced_folder \"./\", \"/var/www/#{$project}\", :mount_options => ['dmode=777,fmode=777']\n+\n   config.omnibus.chef_version = '11.16.0'\n \n-  config.vm.provider \"virtualbox\" do |box|\n+  config.vm.provider \"virtualbox\" do |box, override|\n     box.memory = 1024\n     box.cpus = 1\n+    \n+    if RbConfig::CONFIG['host_os'] =~ /mswin|win|mingw/\n+      # Allows long filenames in Windows\n+      # See: https://github.com/mitchellh/vagrant/issues/1953\n+      box.customize [\"sharedfolder\", \"add\", :id, \"--name\", \"project\", \"--hostpath\", ((\"//?/\" + File.dirname(__FILE__)).gsub(\"/\",\"\\\\\"))]\n+      \n+      # Allow symlinks (Run `vagrant up` from a CMD Prompt with Admin Privs)\n+      box.customize [\"setextradata\", :id, \"VBoxInternal2/SharedFoldersEnableSymlinksCreate/project\", \"1\"]\n+      \n+      # Dissable the \"default\" Synced Folder mount (via Vagrant) in favor of VBox\n+      override.vm.synced_folder \"./\", \"/var/www/#{$project}\", disabled: true\n+      \n+      # This is the default way the folder is typically created\n+      override.vm.provision :shell, inline: \"mkdir /var/www/#{$project} -p\"\n+      override.vm.provision :shell, inline: \"mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` project /var/www/#{$project}\", run: \"always\"\n+    end\n+    \n+    # Ensures this only executes on VirtualBox\n+    override.vm.provision \"chef_solo\" do |chef|\n+      json = JSON.parse( IO.read(\"attributes/default.json\") )\n+      json.store('project', $project)\n+      \n+      chef.custom_config_path = \"./vendor/vagrantfile/Vagrantfile.chef\"\n+      chef.environment        = \"development\"\n+      chef.cookbooks_path     = \"cookbooks/\"\n+      chef.environments_path  = \"environments/\"\n+      chef.json               = json\n+    end\n+    \n   end\n-\n-  config.vm.provision \"chef_solo\" do |chef|\n-    chef.environment       = \"development\"\n-    chef.cookbooks_path    = \"cookbooks/\"\n-    chef.environments_path = \"environments/\"\n-    chef.json              = JSON.parse( IO.read(\"attributes/default.json\") )\n-  end\n-\n+  \n   config.vm.network :private_network, ip: findip()\n-  config.vm.synced_folder \"./\", \"/var/www/#{$project}\", :mount_options => ['dmode=777,fmode=777']","path":"Vagrantfile","position":61,"original_position":61,"commit_id":"b4935d10bb9a03f9a293dc4a864954ef77f97d7e","original_commit_id":"b4935d10bb9a03f9a293dc4a864954ef77f97d7e","user":{"login":"sudo-reboot","id":636227,"avatar_url":"https://avatars.githubusercontent.com/u/636227?v=3","gravatar_id":"","url":"https://api.github.com/users/sudo-reboot","html_url":"https://github.com/sudo-reboot","followers_url":"https://api.github.com/users/sudo-reboot/followers","following_url":"https://api.github.com/users/sudo-reboot/following{/other_user}","gists_url":"https://api.github.com/users/sudo-reboot/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-reboot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-reboot/subscriptions","organizations_url":"https://api.github.com/users/sudo-reboot/orgs","repos_url":"https://api.github.com/users/sudo-reboot/repos","events_url":"https://api.github.com/users/sudo-reboot/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-reboot/received_events","type":"User","site_admin":false},"body":"oh yep, i just missed it","created_at":"2015-04-28T13:52:21Z","updated_at":"2015-04-28T13:52:21Z","html_url":"https://github.com/daftlabs/vagrantfile/pull/9#discussion_r29243913","pull_request_url":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/comments/29243913"},"html":{"href":"https://github.com/daftlabs/vagrantfile/pull/9#discussion_r29243913"},"pull_request":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9","id":34198852,"html_url":"https://github.com/daftlabs/vagrantfile/pull/9","diff_url":"https://github.com/daftlabs/vagrantfile/pull/9.diff","patch_url":"https://github.com/daftlabs/vagrantfile/pull/9.patch","issue_url":"https://api.github.com/repos/daftlabs/vagrantfile/issues/9","number":9,"state":"open","locked":false,"title":"Windows Support, and HTTPS fix","user":{"login":"thebeline","id":130580,"avatar_url":"https://avatars.githubusercontent.com/u/130580?v=3","gravatar_id":"","url":"https://api.github.com/users/thebeline","html_url":"https://github.com/thebeline","followers_url":"https://api.github.com/users/thebeline/followers","following_url":"https://api.github.com/users/thebeline/following{/other_user}","gists_url":"https://api.github.com/users/thebeline/gists{/gist_id}","starred_url":"https://api.github.com/users/thebeline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebeline/subscriptions","organizations_url":"https://api.github.com/users/thebeline/orgs","repos_url":"https://api.github.com/users/thebeline/repos","events_url":"https://api.github.com/users/thebeline/events{/privacy}","received_events_url":"https://api.github.com/users/thebeline/received_events","type":"User","site_admin":false},"body":"1. Adds support for Long Path names and Symlinks for Windows VirtualBox.\r\n2. Ensures that Chef Solo only runs on VirtualBox (only supported).\r\n3. Resolves an HTTPS error when forking Chef:\r\n\r\n```\r\n==> default: Running chef-solo...\r\n==> default: stdin: is not a tty\r\n==> default: [2015-04-27T18:47:43+00:00] INFO: Forking chef instance to converge...\r\n==> default: [2015-04-27T18:47:43+00:00] WARN:\r\n==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n==> default: SSL validation of HTTPS requests is disabled. HTTPS connections are still\r\n==> default: encrypted, but chef is not able to detect forged replies or man in the middle\r\n==> default: attacks.\r\n==> default:\r\n==> default: To fix this issue add an entry like this to your configuration file:\r\n==> default:\r\n==> default: ```\r\n==> default:   # Verify all HTTPS connections (recommended)\r\n==> default:   ssl_verify_mode :verify_peer\r\n==> default:\r\n==> default:   # OR, Verify only connections to chef-server\r\n==> default:   verify_api_cert true\r\n==> default: ```\r\n==> default:\r\n==> default: To check your SSL configuration, or troubleshoot errors, you can use the\r\n==> default: `knife ssl check` command like so:\r\n==> default:\r\n==> default: ```\r\n==> default:   knife ssl check -c /tmp/vagrant-chef/solo.rb\r\n==> default: ```\r\n==> default:\r\n==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n==> default: [2015-04-27T18:47:43+00:00] INFO: *** Chef 11.16.0 ***\r\n==> default: [2015-04-27T18:47:43+00:00] INFO: Chef-client pid: 1467\r\n==> default: [2015-04-27T18:47:50+00:00] INFO: Setting the run_list to [\"recipe[startupgenome]\"] from CLI options\r\n```\r\n\r\nSorry that there are a number of commits for what amounts to a small change, as a first foray into Vagrant, it was quite the learning experience.","created_at":"2015-04-27T18:57:19Z","updated_at":"2015-04-28T13:52:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c230a96e270df7ce76f993d26fcd05d043575fbb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9/commits","review_comments_url":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9/comments","review_comment_url":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daftlabs/vagrantfile/issues/9/comments","statuses_url":"https://api.github.com/repos/daftlabs/vagrantfile/statuses/b4935d10bb9a03f9a293dc4a864954ef77f97d7e","head":{"label":"BigRoomStudios:master","ref":"master","sha":"b4935d10bb9a03f9a293dc4a864954ef77f97d7e","user":{"login":"BigRoomStudios","id":1679373,"avatar_url":"https://avatars.githubusercontent.com/u/1679373?v=3","gravatar_id":"","url":"https://api.github.com/users/BigRoomStudios","html_url":"https://github.com/BigRoomStudios","followers_url":"https://api.github.com/users/BigRoomStudios/followers","following_url":"https://api.github.com/users/BigRoomStudios/following{/other_user}","gists_url":"https://api.github.com/users/BigRoomStudios/gists{/gist_id}","starred_url":"https://api.github.com/users/BigRoomStudios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigRoomStudios/subscriptions","organizations_url":"https://api.github.com/users/BigRoomStudios/orgs","repos_url":"https://api.github.com/users/BigRoomStudios/repos","events_url":"https://api.github.com/users/BigRoomStudios/events{/privacy}","received_events_url":"https://api.github.com/users/BigRoomStudios/received_events","type":"Organization","site_admin":false},"repo":{"id":34347475,"name":"vagrantfile","full_name":"BigRoomStudios/vagrantfile","owner":{"login":"BigRoomStudios","id":1679373,"avatar_url":"https://avatars.githubusercontent.com/u/1679373?v=3","gravatar_id":"","url":"https://api.github.com/users/BigRoomStudios","html_url":"https://github.com/BigRoomStudios","followers_url":"https://api.github.com/users/BigRoomStudios/followers","following_url":"https://api.github.com/users/BigRoomStudios/following{/other_user}","gists_url":"https://api.github.com/users/BigRoomStudios/gists{/gist_id}","starred_url":"https://api.github.com/users/BigRoomStudios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigRoomStudios/subscriptions","organizations_url":"https://api.github.com/users/BigRoomStudios/orgs","repos_url":"https://api.github.com/users/BigRoomStudios/repos","events_url":"https://api.github.com/users/BigRoomStudios/events{/privacy}","received_events_url":"https://api.github.com/users/BigRoomStudios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BigRoomStudios/vagrantfile","description":"","fork":true,"url":"https://api.github.com/repos/BigRoomStudios/vagrantfile","forks_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/forks","keys_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/teams","hooks_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/hooks","issue_events_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/issues/events{/number}","events_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/events","assignees_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/assignees{/user}","branches_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/branches{/branch}","tags_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/tags","blobs_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/git/refs{/sha}","trees_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/statuses/{sha}","languages_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/languages","stargazers_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/stargazers","contributors_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/contributors","subscribers_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/subscribers","subscription_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/subscription","commits_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/commits{/sha}","git_commits_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/git/commits{/sha}","comments_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/comments{/number}","issue_comment_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/issues/comments{/number}","contents_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/contents/{+path}","compare_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/merges","archive_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/downloads","issues_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/issues{/number}","pulls_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/pulls{/number}","milestones_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/milestones{/number}","notifications_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/labels{/name}","releases_url":"https://api.github.com/repos/BigRoomStudios/vagrantfile/releases{/id}","created_at":"2015-04-21T19:22:10Z","updated_at":"2015-04-21T19:22:04Z","pushed_at":"2015-04-27T18:55:46Z","git_url":"git://github.com/BigRoomStudios/vagrantfile.git","ssh_url":"git@github.com:BigRoomStudios/vagrantfile.git","clone_url":"https://github.com/BigRoomStudios/vagrantfile.git","svn_url":"https://github.com/BigRoomStudios/vagrantfile","homepage":null,"size":93,"stargazers_count":0,"watchers_count":0,"language":null,"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":"daftlabs:master","ref":"master","sha":"3a5fb7d76bcb7d55faa5f76f6bf3e3a4e642e634","user":{"login":"daftlabs","id":3377495,"avatar_url":"https://avatars.githubusercontent.com/u/3377495?v=3","gravatar_id":"","url":"https://api.github.com/users/daftlabs","html_url":"https://github.com/daftlabs","followers_url":"https://api.github.com/users/daftlabs/followers","following_url":"https://api.github.com/users/daftlabs/following{/other_user}","gists_url":"https://api.github.com/users/daftlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/daftlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daftlabs/subscriptions","organizations_url":"https://api.github.com/users/daftlabs/orgs","repos_url":"https://api.github.com/users/daftlabs/repos","events_url":"https://api.github.com/users/daftlabs/events{/privacy}","received_events_url":"https://api.github.com/users/daftlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":18532456,"name":"vagrantfile","full_name":"daftlabs/vagrantfile","owner":{"login":"daftlabs","id":3377495,"avatar_url":"https://avatars.githubusercontent.com/u/3377495?v=3","gravatar_id":"","url":"https://api.github.com/users/daftlabs","html_url":"https://github.com/daftlabs","followers_url":"https://api.github.com/users/daftlabs/followers","following_url":"https://api.github.com/users/daftlabs/following{/other_user}","gists_url":"https://api.github.com/users/daftlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/daftlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daftlabs/subscriptions","organizations_url":"https://api.github.com/users/daftlabs/orgs","repos_url":"https://api.github.com/users/daftlabs/repos","events_url":"https://api.github.com/users/daftlabs/events{/privacy}","received_events_url":"https://api.github.com/users/daftlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/daftlabs/vagrantfile","description":"","fork":false,"url":"https://api.github.com/repos/daftlabs/vagrantfile","forks_url":"https://api.github.com/repos/daftlabs/vagrantfile/forks","keys_url":"https://api.github.com/repos/daftlabs/vagrantfile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daftlabs/vagrantfile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daftlabs/vagrantfile/teams","hooks_url":"https://api.github.com/repos/daftlabs/vagrantfile/hooks","issue_events_url":"https://api.github.com/repos/daftlabs/vagrantfile/issues/events{/number}","events_url":"https://api.github.com/repos/daftlabs/vagrantfile/events","assignees_url":"https://api.github.com/repos/daftlabs/vagrantfile/assignees{/user}","branches_url":"https://api.github.com/repos/daftlabs/vagrantfile/branches{/branch}","tags_url":"https://api.github.com/repos/daftlabs/vagrantfile/tags","blobs_url":"https://api.github.com/repos/daftlabs/vagrantfile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daftlabs/vagrantfile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daftlabs/vagrantfile/git/refs{/sha}","trees_url":"https://api.github.com/repos/daftlabs/vagrantfile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daftlabs/vagrantfile/statuses/{sha}","languages_url":"https://api.github.com/repos/daftlabs/vagrantfile/languages","stargazers_url":"https://api.github.com/repos/daftlabs/vagrantfile/stargazers","contributors_url":"https://api.github.com/repos/daftlabs/vagrantfile/contributors","subscribers_url":"https://api.github.com/repos/daftlabs/vagrantfile/subscribers","subscription_url":"https://api.github.com/repos/daftlabs/vagrantfile/subscription","commits_url":"https://api.github.com/repos/daftlabs/vagrantfile/commits{/sha}","git_commits_url":"https://api.github.com/repos/daftlabs/vagrantfile/git/commits{/sha}","comments_url":"https://api.github.com/repos/daftlabs/vagrantfile/comments{/number}","issue_comment_url":"https://api.github.com/repos/daftlabs/vagrantfile/issues/comments{/number}","contents_url":"https://api.github.com/repos/daftlabs/vagrantfile/contents/{+path}","compare_url":"https://api.github.com/repos/daftlabs/vagrantfile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daftlabs/vagrantfile/merges","archive_url":"https://api.github.com/repos/daftlabs/vagrantfile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daftlabs/vagrantfile/downloads","issues_url":"https://api.github.com/repos/daftlabs/vagrantfile/issues{/number}","pulls_url":"https://api.github.com/repos/daftlabs/vagrantfile/pulls{/number}","milestones_url":"https://api.github.com/repos/daftlabs/vagrantfile/milestones{/number}","notifications_url":"https://api.github.com/repos/daftlabs/vagrantfile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daftlabs/vagrantfile/labels{/name}","releases_url":"https://api.github.com/repos/daftlabs/vagrantfile/releases{/id}","created_at":"2014-04-07T20:10:02Z","updated_at":"2015-04-21T19:22:04Z","pushed_at":"2015-04-27T18:57:20Z","git_url":"git://github.com/daftlabs/vagrantfile.git","ssh_url":"git@github.com:daftlabs/vagrantfile.git","clone_url":"https://github.com/daftlabs/vagrantfile.git","svn_url":"https://github.com/daftlabs/vagrantfile","homepage":null,"size":323,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9"},"html":{"href":"https://github.com/daftlabs/vagrantfile/pull/9"},"issue":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/issues/9"},"comments":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/daftlabs/vagrantfile/statuses/b4935d10bb9a03f9a293dc4a864954ef77f97d7e"}}}}