Book description
Build, deploy, and manage your IT infrastructure to deliver a successful automated system with Chef in any environment
- Discover the new fundamentals of the ecosystem, its APIs, as well as the ohai and knife plugins
- Learn new ways of using Chef and its attributes by overriding the old attributes
- Packed with real-world examples that can be used to explore the components like speeding up Chef with Ruby
In Detail
Chef is a configuration management tool that turns IT infrastructure into code. Chef provides tools to manage systems at scale. This book will take you through the Chef code, tools, and components to manage your environments using the Chef server efficiently. The book starts with an introduction to the Chef ecosystem, taking you through the terminologies used in Chef, the anatomy of a chef-client run, and Chef solo. You will learn how to use Knife and its associated plugins to accomplish daily routine tasks in a more efficient way. You will also learn how to speed this up by using Ruby with Chef, which will allow you to write more efficient infrastructure code. This book then introduces you to cookbooks and how to extend chef-client through the use of Lightweight Resource/Provider. It tells you how to keep all kind of configurations in key-value pair efficiently, by introducing you to data bags and templates. Then you will get a walkthrough of Chef's wonderful APIs and the extended functionalities of Chef. By the end of the book you will be so well-versed with Chef that you'll be able to explore some fun uses of Chef, which will allow for better productivity.
What You Will Learn
- Get familiar with the Chef ecosystem and its associated components
- Use Ruby and Chef together to write effective infrastructure code
- Explore various aspects of the Chef API, such as using search in a recipe and with the help of the Knife plugin
- Write recipes and custom Lightweight Resource/Provider
- Discover the usage of data bags and templates to customize servers
- Extend the functionalities of Chef using custom Ohai and Knife plugins
Table of contents
-
Mastering Chef
- Table of Contents
- Mastering Chef
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Introduction to the Chef Ecosystem
- 2. Knife and Its Associated Plugins
- 3. Chef and Ruby
- 4. Controlling Access to Resources
- 5. Starting the Journey to the World of Recipes
- 6. Cookbooks and LWRPs
-
7. Roles and Environments
- Managing roles
-
Managing environments
-
Using Knife
- Creating a new environment
- Editing an environment configuration
- Deleting an environment
- Displaying all the environments configured on the Chef server
- Showing details associated with an environment
- Comparing cookbook versions across environments
- Creating or editing an environment using the configuration specified in a file
- Using Ruby DSL
-
Using Knife
- Setting up an environment on a node
- Role and environment attributes
- Environment run lists
- Summary
- 8. Attributes and Their Uses
- 9. Ohai and Its Plugin Ecosystem
- 10. Data Bags and Templates
-
11. Chef API and Search
- Prerequisites for using Chef API
- Authentication of requests
-
Endpoints
- /users
- /users/NAME
- /clients
- /clients/NAME
- /roles
- /roles/NAME
- /roles/NAME/environments
- /roles/NAME/environments/NAME
- /cookbooks
- /cookbooks/NAME
- /cookbooks/NAME/VERSION
- /data
- /data/NAME
- /data/NAME/ITEM
- /environments
- /environments/NAME
- /environments/NAME/cookbooks
- /environments/NAME/nodes
- /environments/NAME/recipes
- /environments/NAME/roles/NAME
- Search
- Ridley
- Summary
- 12. Extending Chef
- 13. (Ab)Using Chef
- Index
Product information
- Title: Mastering Chef
- Author(s):
- Release date: June 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783981564
You might also like
book
Customizing Chef
Take advantage of Chef’s highly customizable design to tackle specific automation issues that you can’t solve …
book
Mastering Chef Provisioning
Learn Chef Provisioning like a boss and finally own your infrastructure About This Book This is …
book
Chef Cookbook - Third Edition
Master over 80 incredibly effective recipes to manage the day-to-day complications in your infrastructure About This …
book
Learning Chef
Get a hands-on introduction to the Chef, the configuration management tool for solving operations issues in …