Take advantage of Chef’s highly customizable design to tackle specific automation issues that you can’t solve by simply using Chef’s tools, resources, and services out of the box. With this practical guide, you’ll examine the internal structure of this configuration management technology and learn where, how, and why to add custom code.
Author Jon Cowie not only provides code snippets and practical advice for customizing Chef, but also helps you determine case by case whether it’s in your best interests to customize at all. If you have intermediate-to-advanced Chef experience, this book is indispensable.
Part I. Chef and Ruby 101
Chapter 1. Introduction
Chapter 2. Just Enough Ruby to Customize Chef
Chapter 3. Chef Internals
Part II. Customizing Chef Runs
Chapter 4. Extending Ohai
Chapter 5. Creating Handlers
Chapter 6. Extending Chef Run Events
Part III. Customizing Recipes
Chapter 7. Definitions and Libraries
Chapter 8. Lightweight Resources and Providers
Chapter 9. Heavyweight Resources and Providers
Part IV. Other Customizations
Chapter 10. Customizing Knife
Chapter 11. The Chef API
Chapter 12. Contributing Your Customizations
Appendix A. Chef API Endpoints and Verbs