Books & Videos

Table of Contents

  1. Chapter 1 Configuration Management and Chef

    1. What Is Configuration Management?

    2. Why You Need a Configuration Management Tool to Automate IT

    3. What Is Chef?

    4. Why Chef Might Be a Good Tool for Your Enterprise

    5. Where Do We Go From Here?

  2. Chapter 2 Configure Your Chef Development Environment

    1. Install a Programmer’s Text Editor

    2. Chef Development Tools

    3. Install the Chef Development Tools on Linux

    4. Install the Chef Development Tools on Mac OS X

    5. Install the Chef Development Tools on Windows

    6. Summary

  3. Chapter 3 Ruby and Chef Syntax

    1. Overview of Ruby

    2. Ruby Syntax and Examples

    3. Chef Syntax and Examples

  4. Chapter 4 Write Your First Chef Recipe

    1. Create a Directory Structure for Your Code

    2. Write Your First Chef Recipe

    3. Verify Your First Chef Recipe

    4. Examine hello.rb

    5. Recipes Specify Desired Configuration

    6. To Uninstall, Specify What Not to Do

    7. Summary

  5. Chapter 5 Manage Sandbox Environments with Test Kitchen

    1. Installing Vagrant and VirtualBox

    2. Host versus Guest

    3. Introducing Test Kitchen

    4. Spinning Up Your First Virtual Machine

    5. YAML Overview

    6. Test Kitchen Configuration with .kitchen.yml

    7. Summary

  6. Chapter 6 Manage Nodes with Chef Client

    1. What Is a Node?

    2. Create a New Sandbox Environment for a Node

    3. Installing Chef Client with Test Kitchen

    4. Your First Chef-Client Run

    5. Chef Client Modes

    6. Ohai

    7. Accessing Node Information

    8. Summary

  7. Chapter 7 Cookbook Authoring and Use

    1. Your First Cookbook: Message of the Day

    2. Your First Cookbook: Message of the Day (Chef Development Kit)

    3. Introducing the Cookbook_file Resource

    4. Your First Cookbook: Message of the Day (Chef Client)

    5. Introducing the Cookbook_file Resource

    6. Performing Your First Converge

    7. Validate Your Results

    8. Anatomy of a Chef Run

    9. Cookbook Structure

    10. The Four Resources You Need to Know

    11. Apache Cookbook: A Step-By-Step Primer for Creating a Cookbook

    12. Summary

  8. Chapter 8 Attributes

    1. Motd-Attributes Cookbook

    2. Setting Attributes

    3. Basic Attribute Priority

    4. Include_Recipe

    5. Attribute Precedence

    6. Debugging Attributes

    7. Summary

  9. Chapter 9 Manage Multiple Nodes at Once with Chef Server

    1. How to Install Enterprise Chef Server Manually

    2. Install Enterprise Chef Server

    3. Introducing Idempotence

    4. Configure Enterprise Chef Server

    5. Testing the Connection

    6. Bootstrapping a Node

    7. Bootstrap Chef Server with Chef Solo

    8. Summary

  10. Chapter 10 Community and the Chef-Client Cookbook

    1. Using Community Cookbooks

    2. Chef-Client Cookbook

    3. Knife Cookbook Site Plugin

    4. Search for Community Cookbooks Using Knife Cookbook Site

    5. Manage Chef Supermarket Cookbooks on Your Chef Server Using Knife Cookbook Site

    6. Chef-Client Recipes

    7. Configure Knife to Use a Production SSL Setup

    8. Configure Chef-Client to Use a Production SSL Setup

    9. Summary

  11. Chapter 11 Chef Zero

    1. Test Kitchen and Chef Zero

    2. Running Chef-Zero on Your Host Using Chef-Playground

    3. Summary

  12. Chapter 12 Search

    1. Search from the Command Line

    2. Search from the Command Line with Knife

    3. Search in a Recipe Using Test Kitchen

    4. Summary

  13. Chapter 13 Data Bags

    1. Basic Command Line Data Bag Usage with Knife

    2. Creating Local Users Based on Data Bag Items in a Recipe

    3. Verify Users

    4. Encrypted Data Bags

    5. chef-vault

    6. Summary

  14. Chapter 14 Roles

    1. Create a Web Server Role

    2. Attributes and Roles

    3. Roles and Search

    4. Role Cookbook

    5. Summary

  15. Chapter 15 Environments

    1. Create a Dev Environment

    2. Attributes and Environments

    3. Putting All the Pieces Together

    4. Summary

  16. Chapter 16 Testing

    1. Testing Rationale

    2. Revisiting the Apache Cookbook

    3. Test Automation with Serverspec

    4. Test Automation with Foodcritic

    5. Test Automation with ChefSpec

    6. Summary

  17. Chapter 17 Conclusion

  18. Appendix Open Source Chef Server

    1. How to Install Open Source Chef Server Manually

    2. Install Open Source Chef Server

    3. Introducing Idempotence

    4. Configure Open Source Chef Server

    5. Testing the Connection

    6. Bootstrapping a Node

    7. Create a Node

    8. Bootstrap the Node with Knife

  19. Appendix Hosted Enterprise Chef

    1. Testing the Connection