Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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

Product type Book
Published in Jun 2014
Publisher
ISBN-13 9781783982462
Pages 116 pages
Edition 1st Edition
Languages
Author (1):
Naveed ur Rahman Naveed ur Rahman
Profile icon Naveed ur Rahman
Toc

Cookbooks


Cookbooks are a collection of recipes and they consist of basic and fundamental units of various policies and distributions. Each cookbook contains complete setups to install every distribution on a machine.

For instance, we need a web server, so we are installing Nginx to act as a web server. The Nginx cookbook should contain all the package names that are dependent to install Nginx. Moreover, it should provide step-by-step instructions to the machine to make this happen.

Let's have a detailed look at how to develop a cookbook.

The folder structure

Cookbooks should ideally consist of the following folder structure. As they are a collection of different recipes, while executing the recipe by default, Chef-Solo will look for a default folder:

attributes
    default.rb
files
    default
        file.txt
recipes
    default.rb
templates
    default
        file.erb
metadata.rb

Attributes

As we have already discussed about these terminologies in the last chapter here, once again, we will...

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 $15.99/month. Cancel anytime