- From: AJ Christensen <
>
- To:
- Subject: [chef] Re: chef-solo not finding the users cookbook.
- Date: Sat, 31 Dec 2011 18:08:48 +1300
You have a typo
On 31 December 2011 17:28, 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
See how it says recipe[users not found? I guess the exception could be
enhanced a little.
>
>
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"
You've missed the ending right-square brace, here.
Should be:
"recipe[users::sysadmins]"
Cheers,
AJ
>
)
>
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.