"Cookbook user not found"
Closed this issue · 2 comments
I'm in the process of learning Chef, so this probably isn't an error with chef-user
, but I'm hoping someone here can help me out.
I clone this repo into cookbooks
with cd cookbooks && git clone git://github.com/fnichol/chef-user.git
, so now I have a ./cookbooks/chef-user
.
Then I add recipe[user::data_bag]
to my run_list
, so the contents of my run_list
are:
{
"run_list":["recipe[user::data_bag]", "recipe[main]"]
}
Then I add ./data_bags/users/cgenco.json
and put some stuff in it.
Then I try to cook it with knife solo:
$ knife solo cook root@XX.XX.XXX.XXX
WARNING: No knife configuration file found
Checking Chef version...
Starting Chef Client, version 11.4.4
Compiling Cookbooks...
[2013-06-12T17:32:49+00:00] ERROR: Running exception handlers
[2013-06-12T17:32:49+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-06-12T17:32:49+00:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2013-06-12T17:32:49+00:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook user not found. If you're loading user from another cookbook, make sure you configure the dependency in your metadata
ERROR: RuntimeError: chef-solo failed. See output above.
What am I doing wrong? D:
You probably have the cookbook in cookbooks/chef-user instead of cookbooks/user. Renaming the cookbook folder should fix that for you.
@christiangenco I hope Chef has treated you well over the years. :)
This issue has been dormant for awhile so I'm going to close it. Please don't hesitate to open a new issue if you need anything.