Book 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
Publisher resources
Table of contents
- Dedication
- Foreword
- Preface
-
I. Chef and Ruby 101
- 1. Introduction
- 2. Just Enough Ruby to Customize Chef
- 3. Chef Internals
-
II. Customizing Chef Runs
- 4. Extending Ohai
- 5. Creating Handlers
- 6. Extending Chef Run Events
-
III. Customizing Recipes
- 7. Definitions and Libraries
- 8. Lightweight Resources and Providers
- 9. Heavyweight Resources and Providers
-
IV. Other Customizations
-
10. Customizing Knife
- The Knife Source Code
- Introduction to Knife Plugins
- Anatomy of a Knife Command
- Creating a Test Environment
- Knife Example 1: Wrapping an Existing Plugin
- Presenting Presenters!
- The UI Class
- Knife Example 2: Search Plugin
- Working with Chef Objects
- Knife Example 3: Tying It All Together
- Revisiting AwesomeInc—Plugin Best Practices
- Summary and Further Reading
- 11. The Chef API
- 12. Contributing Your Customizations
- A. Chef API Endpoints and Verbs
-
10. Customizing Knife
- Index
- Colophon
- Copyright
Product information
- Title: Customizing Chef
- Author(s):
- Release date: August 2014
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491949375
You might also like
audiobook
The Art of Leadership
Many people think leadership is a higher calling that resides exclusively with managers who practice or …
book
Learning Chef
Get a hands-on introduction to the Chef, the configuration management tool for solving operations issues in …
book
Mastering Chef
Build, deploy, and manage your IT infrastructure to deliver a successful automated system with Chef in …
audiobook
The Manager's Path
Managing people is difficult wherever you work. But in the tech industry, where management is also …