mitchellh/vagrant — Issue #640: Vagrant provision with chef-solo behind a proxy
Author: MPV
Created: 2012-01-16 16:34:24+00:00
State: open

Hi,
I'm trying to set up a vagrant box with Chef behind a proxy and I'm getting some issues.

I saw this issue which looks like something similar to what I want to do:
https://github.com/mitchellh/vagrant/issues/169

Is that fix a part of version 0.8.10 (which is what I'm using) or something added in a later version?

My Vagrantfile has this:

Vagrant::Config.run do |config|
...
config.vm.provision :chef_solo do |chef|
chef.http_proxy = "http://proxy.ourserveraddress.com:8080"
chef.https_proxy = "https://proxy.ourserveraddress.com:8080"
chef.cookbooks_path = "vagrant/cookbooks"
chef.add_recipe "apache2"
chef.add_recipe "php"
end
...
end

And it hangs on this step:

$ vagrant provision
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
[default] stdin: is not a tty
: stderr
[default] [Mon, 16 Jan 2012 08:29:33 -0800] INFO: *** Chef 0.10.2 ***
: stdout
[default] [Mon, 16 Jan 2012 08:29:34 -0800] INFO: Setting the run_list to ["recipe[apache2]", "recipe[php]"] from JSON
: stdout
[default] [Mon, 16 Jan 2012 08:29:34 -0800] INFO: Run List is [recipe[apache2], recipe[php]]
: stdout
[default] [Mon, 16 Jan 2012 08:29:34 -0800] INFO: Run List expands to [apache2, php]
: stdout
[default] [Mon, 16 Jan 2012 08:29:34 -0800] INFO: Starting Chef Run for lucid32
: stdout
[default] [Mon, 16 Jan 2012 08:29:34 -0800] INFO: Processing package[apache2] action install (apache2::default line 20)
: stdout