Skip to content

Instantly share code, notes, and snippets.

@jsierles
Created January 28, 2009 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsierles/54027 to your computer and use it in GitHub Desktop.
Save jsierles/54027 to your computer and use it in GitHub Desktop.
# solo.rb
cookbook_path "/var/chef/cookbooks"
node_path "/var/chef/nodes"
#search_index_path File.join(File.dirname(__FILE__), "search_index")
log_level :info
file_store_path "/var/chef"
file_cache_path "/var/chef/cache"
node_name `hostname -s`
% ls /var/chef/cookbooks
monit nagios sudo
root@noc2:~/chef_recipes# chef-solo -c config/solo.rb -j ~/noc.json
INFO: Starting Chef Solo Run
INFO: Loading plugin os
INFO: Loading plugin ruby
INFO: Loading plugin languages
INFO: Loading plugin kernel
INFO: Loading plugin uptime
INFO: Loading plugin network
INFO: Loading plugin hostname
INFO: Loading plugin linux::hostname
INFO: Loading plugin linux::network
INFO: Loading plugin ohai_time
INFO: Loading plugin platform
INFO: Loading plugin linux::platform
INFO: Loading plugin linux::lsb
INFO: Loading plugin keys
INFO: Loading plugin command
INFO: Loading plugin linux::memory
INFO: Loading plugin linux::uptime
INFO: Loading plugin linux::ssh_host_key
INFO: Loading plugin linux::block_device
INFO: Loading plugin linux::cpu
INFO: Loading plugin linux::filesystem
INFO: Loading plugin linux::ps
INFO: Loading plugin linux::kernel
/usr/lib/ruby/gems/1.8/gems/chef-0.5.1/lib/chef/cookbook_loader.rb:102:in `[]': Cannot find a cookbook named sudo (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.5.1/lib/chef/compile.rb:108:in `load_recipes'
from /usr/lib/ruby/gems/1.8/gems/chef-0.5.1/lib/chef/compile.rb:101:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.5.1/lib/chef/compile.rb:101:in `load_recipes'
from /usr/lib/ruby/gems/1.8/gems/chef-0.5.1/lib/chef/client.rb:338:in `converge'
from /usr/lib/ruby/gems/1.8/gems/chef-0.5.1/lib/chef/client.rb:96:in `run_solo'
from /usr/lib/ruby/gems/1.8/gems/chef-0.5.1/bin/chef-solo:98
from /usr/bin/chef-solo:19:in `load'
from /usr/bin/chef-solo:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment