![]()
Chef Infrastructure Automation Cookbook Second Edition
Table of Contents
Chef Infrastructure Automation Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Chef Infrastructure
Introduction
Using version control
Getting ready
How to do it...
How it works...
There's more...
See also
Installing the Chef development kit on your workstation
How to do it...
How it works...
See also
Using the hosted Chef platform
Getting ready
How to do it...
How it works...
There's more...
See also
Managing virtual machines with Vagrant
Getting ready
How to do it...
How it works...
There's more...
See also
Creating and using cookbooks
Getting ready
How to do it...
How it works...
See also
Inspecting files on your Chef server with knife
Getting ready
How to do it...
How it works...
There's more...
See also
Defining cookbook dependencies
Getting ready
How to do it...
How it works...
There's more...
See also
Managing cookbook dependencies with Berkshelf
Getting ready
How to do it...
How it works...
There's more...
See also
Downloading and integrating cookbooks as vendor branches into your Git repository
Getting ready
How to do it...
How it works...
There's more...
See also
Using custom knife plugins
Getting ready
How to do it...
How it works...
There's more...
See also
Deleting a node from the Chef server
Getting ready
How to do it...
How it works...
There's more...
See also
Developing recipes with local mode
Getting ready
How to do it...
How it works...
There's more...
Running knife in local mode
Moving to hosted Chef or your own Chef server
See also
Using roles
Getting ready
How to do it...
How it works...
See also
Using environments
Getting ready
How to do it...
How it works...
There's more...
See also
Freezing cookbooks
Getting ready
How to do it...
How it works...
There's more...
See also
Running Chef client as a daemon
Getting ready
How to do it...
How it works...
There's more...
Using chef-shell
How to do it...
How it works...
There's more...
See also
2. Evaluating and Troubleshooting Cookbooks and Chef Runs
Introduction
Testing your Chef cookbooks
Getting ready
How to do it...
How it works...
There's more...
See also
Flagging problems in your Chef cookbooks
Getting ready
How to do it...
How it works...
There's more...
See also
Test-driven development for cookbooks using ChefSpec
Getting ready
How to do it...
How it works...
There's more...
See also
Integration testing your Chef cookbooks with Test Kitchen
Getting ready
How to do it...
How it works...
There's more...
See also
Showing affected nodes before uploading cookbooks
Getting ready
How to do it...
How it works...
See also
Overriding a node's run list to execute a single recipe
Getting ready
How to do it...
How it works...
See also
Using why-run mode to find out what a recipe might do
Getting ready
How to do it...
How it works...
See also
Debugging Chef client runs
Getting ready
How to do it...
How it works...
There's more...
See also
Inspecting the results of your last Chef run
Getting ready
How to do it...
How it works...
See also
Raising and logging exceptions in recipes
Getting ready
How to do it...
How it works...
There's more...
See also
Diff-ing cookbooks with knife
Getting ready
How to do it...
How it works...
There's more...
See also
Using community exception and report handlers
Getting ready
How to do it...
How it works...
There's more...
See also
Creating custom handlers
Getting ready...
How to do it...
How it works...
There's more...
See also
3. Chef Language and Style
Introduction
Using community Chef style
Getting ready
How to do it...
How it works...
There's more...
See also
Using attributes to dynamically configure recipes
Getting ready
How to do it...
How it works...
There's more...
Calculating values in the attribute files
See also
Using templates
Gett...