O'Reilly logo

Configuration Management with Chef-Solo by Naveed ur Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chef-Solo configuration

After having downloaded a few recipes, we want to run those recipes and make the system ready. The solo.rb file is used to specify all the configuration details. Its default configuration is loaded every time. By a default configuration, the file exists at /etc/chef/solo.rb, but we can use it with a custom path. The solo.rb file can contain several settings but mainly it is used for the cookbook's path, data bag's path, environment, environment path, log_location, and so on.

You can read all the detailed information about each configuration at www.getchef.com.

Our solo.rb file is pretty simple and contains only a few settings.

Create a new solo.rb file with the following content:

file_cache_path "/var/chef/cache" file_backup_path ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required