solo.rb |
|
---|---|
chef-solo configuration files will cut down on the amount of command
line arguments you need to pass to chef-solo. With the following
configuration, you could just issue chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json For more gory details or to further tweak your defaults, check out the Chef Configuration Settings wiki page. |
|
As quoted from the reference: “Where to locally store cache files like cookbooks and other transient data”. So uh, yeah… just set a temporary path here and move along. |
file_cache_path "/tmp/chef-solo" |
The location chef-solo goes looking for chef cookbooks. This could also be a list if there are multiple directories. A list, however does not appear to be used much in the wild |
cookbook_path "/lab/cookbooks" |
The path to your JSON attributes. Also widely known as your Chef DNA. There’s where you are customizing want you want configured and tweak attribute settings (like listing users, packages, versions, etc.). |
json_attribs "/etc/chef/dna.json" |
The default log level for a chef-solo execution. For development and troubleshooting, I’d recommend getting used to the
To increase the verbosity of logging for a one-off execution, pass
chef-solo |
log_level :info |
You can redirect the log output to a file or |
log_location STDOUT |