Chapter 7. Beyond Basic Recipes and Cookbooks

So far, we have only really looked at how to use cookbooks as a consumer, not as a producer. In order to harness the true power of Chef, it is important to learn how to build our own cookbooks and recipes using the full feature set that Chef provides. This chapter covers:

  • Advanced recipe concepts
  • Managing your data using data bags
  • Searching Chef from recipes
  • Advanced scripting in recipes
  • Authoring custom providers, resources, and definitions
  • Dealing with encrypted data

Managing users

Basic user management in Chef is achieved through the use of the user resource. This resource allows you to add, remove, or otherwise manipulate users on your hosts. However, you can't possibly write recipes that contain one resource ...

Get Chef: Powerful Infrastructure Automation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.