[chef] Re: chef-solo not finding the users cookbook.


Chronological Thread 
  • From: Sahil R Cooner < >
  • To:
  • Subject: [chef] Re: chef-solo not finding the users cookbook.
  • Date: Fri, 30 Dec 2011 20:34:48 -0800

I believe this has something to do with search paths for cookbooks and specifying something to that effect during the runtime of a chef-solo run.

Be handy to have a copy of the stack-trace?

-- 
Sahil R Cooner

On Friday, December 30, 2011 at 8:28 PM, Tim Uckun wrote:

I must be doing something dumb but I am getting the following error
when I try to run chef solo


chef-solo -c config/solo.rb -j dna/solo.json

/usr/local/lib/ruby/gems/1.9.1/gems/systemu-2.2.0/lib/systemu.rb:29:
Use RbConfig instead of obsolete and deprecated Config.

[Sat, 31 Dec 2011 17:24:39 +1300] INFO: *** Chef 0.10.8 ***
[Sat, 31 Dec 2011 17:24:39 +1300] INFO: Setting the run_list to
["role[base]"] from JSON
[Sat, 31 Dec 2011 17:24:39 +1300] INFO: Run List is [role[base]]
[Sat, 31 Dec 2011 17:24:39 +1300] INFO: Run List expands to [sudo,
apt, git, build-essential, recipe[users::sysadmins]
[Sat, 31 Dec 2011 17:24:39 +1300] INFO: Starting Chef Run for localhost
[Sat, 31 Dec 2011 17:24:39 +1300] INFO: Running start handlers
[Sat, 31 Dec 2011 17:24:39 +1300] INFO: Start handlers complete.
[Sat, 31 Dec 2011 17:24:39 +1300] ERROR: Running exception handlers
[Sat, 31 Dec 2011 17:24:39 +1300] ERROR: Exception handlers complete
[Sat, 31 Dec 2011 17:24:39 +1300] FATAL: Stacktrace dumped to
/media/sf_tim/source/digital_dialogue/dd-infrastructure/chef-stacktrace.out
[Sat, 31 Dec 2011 17:24:39 +1300] FATAL:
Chef::Exceptions::CookbookNotFound: Cookbook recipe[users not found.
If you're loading recipe[users from another cookbook, make sure you
configure the dependency in your metadata

The cookbook is there in the cookbooks directory and is untouched. The
base role looks like this


name "base"
description "Base role applied to all nodes."

run_list(
"recipe[sudo]",
"recipe[apt]",
"recipe[git]",
"recipe[build-essential]" ,
"recipe[users::sysadmins"
)
override_attributes(
:authorization => {
:sudo => {
:users => ["ubuntu"],
:passwordless => true
}
}
)


the solo.json looks like this

{ "run_list": [ "role[base]"] }


So what gives?




Archive powered by MHonArc 2.6.16.

§