You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty simple setup for my first pass at using chef-zero ...
[harlan@clay zabbix]$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'CentOS-6.4-x86_64-Minimal'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[Chef Zero] Starting Chef Zero at http://10.20.55.149:4000
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start`
And it never starts ...
I poked around some and it seems like this line in lib/vagrant-chef-zero/server_helpers.rb seems like it expects to find only one directory:
Now this is broken for people who have vagrant-chef-zero installed through Bindler, since their chef-zero path is something more like ${COOKBOOK_DIR}/.vagrant/gems/bin/chef-zero. I'm sending a PR your way momentarily that looks for the chef-zero binary in a somewhat saner way.
Pretty simple setup for my first pass at using chef-zero ...
And it never starts ...
I poked around some and it seems like this line in lib/vagrant-chef-zero/server_helpers.rb seems like it expects to find only one directory:
vagrant_gems = ENV['GEM_PATH'].split(':').select { |gp| gp.include?('vagrant')}
but (at least on my system it finds two):
So then the next line joins the two together and adds the bin/chef-zero:
chef_zero_binary = ::File.join(vagrant_gems, "bin", "chef-zero")
to form this:
/home/harlan/.vagrant.d/gems/opt/vagrant/bin/../embedded/gems/bin/chef-zero
which obviously fails.
To work around this problem I just added a '.d' to the include and got it to start:
vagrant_gems = ENV['GEM_PATH'].split(':').select { |gp| gp.include?('vagrant.d')}
I have no idea if that's a good idea or not. :-)
Here's my setup if it matters:
The text was updated successfully, but these errors were encountered: