I have tried to execute my cookbook using this command:
This is my node declaration called by the chef execution:
[2014-09-18T13:14:30-04:00] INFO: Forking chef instance
to converge...
[2014-09-18T13:14:33-04:00] INFO: Setting the run_list
to ["role[was_v85_role]"] from CLI options
==================================================
Error expanding the run_list:
================================================================================
Unexpected API Request Failure:
-------------------------------
Object not found:
http://localhost:8889/roles/was_v85_role
( I REALLY DON'T NEED THIS DATA COMING FROM THE API I JUST
TO GET THE NODE FROM DE FS)
[2014-09-18T13:14:33-04:00] FATAL: Stacktrace dumped
to /tmp/chef-client/chef-stacktrace.out
Chef Client failed. 0 resources updated in 3.514151
seconds
[2014-09-18T13:14:33-04:00] ERROR: 404 "Not Found "
[2014-09-18T13:14:33-04:00] FATAL:
Chef::Exceptions::ChildConvergeError: Chef run process exited
unsuccessfully (exit code 1)
I would like figure out why my role declaration inside my
node isn't working
Here's my client.rb declaration:
chef]# cat client.rb
CHEF_DIR = File.expand_path(File.dirname(__FILE__))
file_cache_path "/tmp/chef-client"
role_path "/devops/commom/chef/roles"
#role_path CHEF_DIR + "/devops/commom/chef/roles"
environment_path CHEF_DIR + "/environments"
data_bag_path CHEF_DIR + "/data_bags"
cookbook_path CHEF_DIR + "/cookbooks"
ssl_client_cert CHEF_DIR + "/.ssl/client.crt"
ssl_client_key CHEF_DIR + "/.ssl/client.key"
ssl_verify_mode :verify_peer
#LOG
log_level:info
It works pretty well with chef solo, but not with
"chef-client -local--mode", any suggestion?