Customizing Chef Front Cover

Customizing Chef

  • Length: 388 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2014-09-19
  • ISBN-10: 149194935X
  • ISBN-13: 9781491949351
  • Sales Rank: #224837 (See Top 100 Books)
Description

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.

  • Explore Chef’s typical setups and why you’d want to customize them
  • Learn the Ruby concepts needed to write customizations
  • Customize the Chef run process and explore Chef’s internal classes
  • Gain more insight into your Chef runs through handlers and Chef’s event stream
  • Level up your Chef recipes by writing your own resources and providers
  • Create and extend plugins for Knife—Chef’s command-line tool
  • Interact with the Chef API to write scripts and reports
  • Learn how to contribute customizations to the Chef community

Table of Contents

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

To access the link, solve the captcha.