Cookbooks

Back to Production-Engineering/Chef

Basic info in README.

Resources

A chef resource describes some piece of infrastructure (file, template or package). A recipe is a file taht groups related resources.

Create a cookbook

chef generate cookbook myCookbook generates default file structure (Berksfile, chefignore, metadata.rb, README, recipes/default.rb, spec directory, test directory)

Debugging

If debugging node['stenographer']['user']:

require 'pp'
pp node.debug_value('stenographer', 'user')