Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Configuration Management with Chef-Solo

You're reading from   Configuration Management with Chef-Solo A comprehensive guide to get you up and running with Chef-Solo.

Arrow left icon
Product type Paperback
Published in Jun 2014
Publisher
ISBN-13 9781783982462
Length 116 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Naveed ur Rahman Naveed ur Rahman
Author Profile Icon Naveed ur Rahman
Naveed ur Rahman
Arrow right icon
View More author details
Toc

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   "/var/chef/backup"
cookbook_path ["/home/<username>/cookbooks"]
# An alternative and more useable method is to use ruby code to get directory path
      cookbook_path File.expand_path(&apos...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image