I have this problem with Vagrant and chef. I got already prepared Vagrantfile and chef cookbooks to use. Basically the vagrantfile is configured by some env variables, so I'm able to create new virtual machine from the Vagrantfile and also all configuration and provisioning is done by chef, but once the virtual machine is finished, chef is not working.
When I execute "vagrant provision" I get this error message:
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
I can't change versions too much, to not break something...As you can see from the error message, there is rvm (1.15.8). Ruby in version 1.9.3 and chef in version 10.12.0.
Before the chef is working for sure, because I was able to create the virtual machine... But then something changed and I can't find out what...I'm going back and forth through all the chef roles/cookbooks/recipes but I can't figure out :(
The RVM is installed for all users, so the /etc/profile.d/rvm.sh is used for the env setup.
Maybe some hints from you could help me, thank you!