Reader small image

You're reading from  Mastering Chef

Product typeBook
Published inJun 2015
Reading LevelIntermediate
Publisher
ISBN-139781783981564
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Mayank Joshi
Mayank Joshi
author image
Mayank Joshi

Mayank Joshi works for Indix as a DevOps engineer. He has worn many hats during his 10-year long career. He has been a developer, a systems analyst, a systems administrator, a software consultant, and for the past 6 years, he has been fascinated with the phenomenal growth witnessed in cloud environments and the challenges of automation associated with the hosting of the infrastructure in such environments. Prior to Indix, he worked for start-ups such as SlideShare, R&D organizations such as CDAC, and even had a stint at a highly automated chemical plant of IFFCO.
Read more about Mayank Joshi

Right arrow

Recipes


So we saw how we can make use of resources to manage different components of the system configuration. Now let's see how to make use of recipes to arrange these resources in a way that allows us to manage our infrastructure efficiently.

A recipe is nothing but a collection of resources with a stir of Ruby code along with attributes as spices. Once you've chosen the right attributes, added them in the right order along with resources, and stirred everything together well using custom Ruby code, you have a wonderful recipe in your hand that can be happily fed to the underlying infrastructure.

We have already learned a lot about resources; let's see what attributes are and how to make good use of them.

Attributes

An attribute is nothing but a key-value pair. We have a whole bunch of attributes to deal with when working with Chef. Ohai, for example, generates tons of attributes for us to consume and play around with. Then we can specify the attribute at node level while running chef-client...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Chef
Published in: Jun 2015Publisher: ISBN-13: 9781783981564

Author (1)

author image
Mayank Joshi

Mayank Joshi works for Indix as a DevOps engineer. He has worn many hats during his 10-year long career. He has been a developer, a systems analyst, a systems administrator, a software consultant, and for the past 6 years, he has been fascinated with the phenomenal growth witnessed in cloud environments and the challenges of automation associated with the hosting of the infrastructure in such environments. Prior to Indix, he worked for start-ups such as SlideShare, R&D organizations such as CDAC, and even had a stint at a highly automated chemical plant of IFFCO.
Read more about Mayank Joshi