Slide 1

Slide 1 text

San Diego DevOps November 2012 © Copyright 2012 OneHealth Solutions, Inc 9/19/13 1

Slide 2

Slide 2 text

What is Chef? •  Infrastructure automation framework •  Supports systems and cloud •  Infrastructure as Code -  Abstract definitions (cookbooks and recipes) -  Defined library and primitives -  Ruby based providing flexibility •  TIMTOWTDI -  Framework does not tell sysadmins how to manage infrastructure •  Apache 2.0 Licensed © Copyright 2012 OneHealth Solutions, Inc 9/19/13 2

Slide 3

Slide 3 text

© Copyright 2012 OneHealth Solutions, Inc 9/19/13 3

Slide 4

Slide 4 text

Chef Components Chef Server Central hub for cookbooks, policies, node data REST API – Knife and Client Endpoint Manager - Web Interface Nodes (Virtual or Physical) Chef Client - performs all of the steps required to bring the node into the expected state Ohai - detect certain properties about a node’s environment © Copyright 2012 OneHealth Solutions, Inc 9/19/13 4

Slide 5

Slide 5 text

Chef Components Workstation(s) Knife - Command-line tool that provides an interface between a local Chef repository and the Chef server. Repository - The location in which the following data objects are stored: -  Cookbooks (including recipes, versions, cookbook attributes, resources, providers, libraries, and templates) -  Roles -  Data bags -  Environments -  Configuration files (for clients, workstations, and servers) Chef Solo - Chef Shell (shef) - IRB-like chef console © Copyright 2012 OneHealth Solutions, Inc 9/19/13 5

Slide 6

Slide 6 text

Demo © Copyright 2012 OneHealth Solutions, Inc 9/19/13 6

Slide 7

Slide 7 text

Chef Related Projects •  Cookbook Workflow Management -  http://berkshelf.com/ -  https://github.com/jonlives/knife-spork -  https://github.com/applicationsonline/librarian -  https://github.com/mattray/spiceweasel •  Cookbook Testing -  http://acrmp.github.com/foodcritic/ -  https://github.com/customink/fauxhai -  https://rubygems.org/gems/test-kitchen -  http://www.cucumber-chef.org/ -  https://github.com/acrmp/chefspec -  https://rubygems.org/gems/minitest-chef-handler © Copyright 2012 OneHealth Solutions, Inc 9/19/13 7

Slide 8

Slide 8 text

Chef Related Projects •  Continuous Delivery -  http://community.opscode.com/cookbooks/artifact -  http://community.opscode.com/cookbooks/metarepo •  This is work in progress •  Knife Community Plugins http://wiki.opscode.com/display/chef/Community +Plugins -  Ssh -  tmux -  Cloud management: euca, openstack, ec2, etc. © Copyright 2012 OneHealth Solutions, Inc 9/19/13 8

Slide 9

Slide 9 text

Chef Related Projects •  Vagrant -  http://www.vagrantup.com/ -  https://github.com/jedi4ever/veewee -  https://github.com/opscode/bento -  https://github.com/BIAINC/vagrant-windows •  Sensu -  http://www.sonian.com/cloud-monitoring-sensu/ •  SaaS: Right Scale, Engine Yard © Copyright 2012 OneHealth Solutions, Inc 9/19/13 9

Slide 10

Slide 10 text

Chef Resources •  Opscode Resources -  http://www.opscode.com/chef/ -  http://wiki.opscode.com/ -  http://docs.opscode.com/ -  http://community.opscode.com/ •  Community Resources -  http://foodfightshow.org/ •  Recent Chef Videos -  http://www.youtube.com/watch?v=GG1IKp2H4uE -  http://www.youtube.com/watch?v=h_IEfNklzW4 © Copyright 2012 OneHealth Solutions, Inc 9/19/13 10