cookbook path problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

cookbook path problem

HaveF
hi, 


I want to set the cookbook path to a certain place, so that I don't need to 
modify the Vagrantfile everytime(after vagrant init).
 
I find Vagrantfile load several places, so I decide to set my cookbook path info 
to ~/.vagrant.d/Vagrantfile, like:

...
   config.vm.provision :chef_solo do |chef|
     chef.cookbooks_path = ["D:/lib/chef/cookbooks"]
     chef.add_recipe "dev::default"
   end
...

but when I make a new vm, and modify Vagrantfile:

...
  config.vm.provision :chef_solo do |chef|
chef.add_recipe "torch"
  end
...

[2013-02-28T03:23:36+00:00] ERROR: Running exception handlers
[2013-02-28T03:23:36+00:00] ERROR: Exception handlers complete
[2013-02-28T03:23:36+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-02-28T03:23:36+00:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook torch not found. If
you're loading torch from another cookbook, make sure you configure the dependency in your metadata
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

but I am sure the specific cookbook is under my cookbook path.

thanks!


--
--
Sincerely,

HaveF

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.