Basic info in README.
A chef resource describes some piece of infrastructure (file, template or package). A recipe is a file taht groups related resources.
:create
apt_update is a resource to automate apt-get update
recipes can include packages: package 'apache2' (no do block, since :install is default action)
package 'apache2'
# enable the Apache service when the server boots, then start
service 'apache2' do
supports :status => true
action [:enable, :start]
endchef generate cookbook myCookbook generates default file structure (Berksfile, chefignore, metadata.rb, README, recipes/default.rb, spec directory, test directory)
default.rb lets you add recipe[myCookbook] to the run-listIf debugging node['stenographer']['user']:
require 'pp'
pp node.debug_value('stenographer', 'user')