Book Image

Chef Infrastructure Automation Cookbook

By : Matthias Marschall
Book Image

Chef Infrastructure Automation Cookbook

By: Matthias Marschall

Overview of this book

Table of Contents (14 chapters)
Chef Infrastructure Automation Cookbook Second Edition
About the Author
About the Reviewers

Chapter 3. Chef Language and Style

"Style is what separates the good from the great."

Bozhidar Batsov

In this chapter, we will cover the following recipes:

  • Using community Chef style

  • Using attributes to dynamically configure recipes

  • Using templates

  • Mixing plain Ruby with Chef DSL

  • Installing Ruby gems and using them in recipes

  • Using libraries

  • Using definitions

  • Creating your own Lightweight Resource Providers (LWRP)

  • Extending community cookbooks by using application wrapper cookbooks

  • Creating custom Ohai plugins

  • Creating custom knife plugins