Hi all,
I tried to run Chef Solo in CentOS 5.5. I followed the installation instruction using rpm installation wiki page:
http://wiki.opscode.com/display/chef/Installation+on+RHEL+and+CentOS+5+with+RPMs
Then followed the chef-solo wiki page:
http://wiki.opscode.com/display/chef/Chef+Solo
The resolver cookbook was downloaded using knife:
Knife cookbook site download resolver
The node.json was created as indicated by the example, and ran:
Chef-solo -j node.json -r resolver-0.8.2.tar.gz
It throws this exception:
[Thu, 24 Feb 2011 17:47:11 +0000] INFO: Setting the run_list to [“recipe[resolver]”] from JSON
[Thu, 24 Feb 2011 17:47:11 +0000] INFO: Starting Chef Run (Version 0.9.8)
[Thu, 24 Feb 2011 17:47:11 +0000] ERROR: Running exception handlers
[Thu, 24 Feb 2011 17:47:11 +0000] ERROR: Exception handlers complete
[Thu, 24 Feb 2011 17:47:11 +0000] ERROR: Re-raising exception: Chef::Exceptions::CookbookNotFound - Cookbook resolver not found
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/cookbook/cookbook_collection.rb:38:in initialize' /usr/lib/ruby/gems/1.8/gems/extlib-0.9.13/lib/extlib/mash.rb:29:in
call’
/usr/lib/ruby/gems/1.8/gems/extlib-0.9.13/lib/extlib/mash.rb:29:in default' /usr/lib/ruby/gems/1.8/gems/extlib-0.9.13/lib/extlib/mash.rb:29:in
default’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/mixin/language_include_recipe.rb:39:in []' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/language_include_recipe.rb:39:in
include_recipe’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/mixin/language_include_recipe.rb:27:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/language_include_recipe.rb:27:in
include_recipe’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/run_context.rb:94:in load' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/run_context.rb:91:in
each’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/run_context.rb:91:in load' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/run_context.rb:55:in
initialize’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/client.rb:84:in new' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:84:in
run’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application/solo.rb:191:in run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/solo.rb:181:in
loop’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application/solo.rb:181:in run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application.rb:62:in
run’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-solo:25
/usr/bin/chef-solo:19:in `load’
/usr/bin/chef-solo:19
I also tried to place the tarball in /var/lib/chef/cookbooks directory, but it shows the same exception.
What am I missing?
Regards,
Eric