- From: Tim Uckun <
>
- To: chef <
>
- Subject: [chef] chef-solo not finding the users cookbook.
- Date: Sat, 31 Dec 2011 17:28:54 +1300
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?
- [chef] chef-solo not finding the users cookbook., Tim Uckun, 12/30/2011
Archive powered by MHonArc 2.6.16.