14. Nodes have Roles Roles describe what a node should be
15. Roles are Searchable $ knife search role ‘max_children:50’ search(:role, ‘max_children:50’)
16. Roles have a run_list What roles or recipes to apply in order
17. Chef manages resources on nodes Resources are specified in recipes, recipes are stored in cookbooks A node’s run_list specifies which recipes (and thus resources) are applied
18.
19. Client / Server Chef Server PROD QA DEV Nodes Nodes report their attributes to the Chef-server with the ‘ Node’ object attributes Chef Repository
20. Chef Server PROD QA DEV Nodes Server applies roles and sends run_list, roles, and all cookbooks back to clients run_list, roles, cookbooks Chef Repository
21. Skinny Server, Fat Clients No “builds” are done on the server A Node configures itself based on its run_list and the downloaded cookbooks
28. Sharing is beautiful 200+ high-quality cookbooks on community.opscode.com and growing all the time Easy to customize existing cookbooks Chef’s real value is this collection of cookbooks
29. Data Bags Data Bags are arbitrary stores of globally available JSON data Think of them as global variables/data sctructures for your infrastructure
30. Data Bags have Items Data bag users/john { "comment": “postgres Rul3z", "groups": [“"sysadmins", "postgres" ], "ssh_keys": "ssh-rsa …..", "id": “john", "shell": "/bin/bash" }
31. Data Bags are Searchable! pg_users = search(:users, “groups:postgres”) group “postgres” do members pg_users end
32. Code/data Split Recipes Templates Attributes Data Bags Node Object Role Cookbook run_list Node Object Role Environments The fact that attributes are in cookbooks, roles, environments, And the node itself can be confusing
33. tl;dr How do I get Started? Do the Quick start using hosted chef, free for 5 nodes http://wiki.opscode.com/display/chef/Quick+Start You can use Ubuntu, Mac OS X, and maybe Windows
34. Possible Corporate Setup PROD-Chef Server PROD QA DEV DEV-Chef Server Bar Foo Dev Playground: Devs have full access To chef-server Disposable nodes for testing cookbooks Only sysadmins Have chef access
39. Questions? Bryan Berry skype: berrdawg [email_address] Portions of this presentations were taken liberally from Joshua Timberman’s Chef 101 presentation Copyright Bryan W. Berry 2011 Creative Commons 3.0 Unported CC-BY-SA