key auth • Infrastructure data store such as node data • Search Service • Derivative Services? http://www.flickr.com/photos/core-materials/4419853626/sizes/o/in/photostream/
• Treat like any other code base • Reconstruct business from code repository, data backup, and bare metal resources. http://www.flickr.com/photos/louisb/4555295187/
run list • Reduce management complexity through abstraction • Store the configuration of your programs in version control http://www.flickr.com/photos/ssoosay/5126146763/
"apache2.conf.erb" owner "root" group "root" mode "0644" variables(:allow_override => "All") notifies :reload, "service[apache2]" end service "apache2" do action [:enable,:start] supports :reload => true end
the Chef Client • Register with the Chef Server • Run the initial Run List • Now managed with Chef! $ knife bootstrap SERVER -r ‘role[webserver]’ knife bootstrap
<%= member[:hostname] %> <%= member[:ipaddress] %>:<%= node['haproxy']['member_port'] %> weight 1 <% end %> Search in Cookbooks • Search for all web servers • Add each to the Load Balancer configuration
Public IP Private IP Flavor Image State 46383a09... web02 192.237.219.98 10.183.21.146 2 c6f9c41... active 795d968b... web01 192.237.214.213 10.183.21.152 2 c6f9c41... active d159c852... haproxy 192.237.222.93 10.183.25.200 2 c6f9c41... active
knife openstack group list (options) knife openstack image list (options) knife openstack server create (options) knife openstack server delete SERVER [SERVER] (options) knife openstack server list (options)
Name Snapshot 03860dc3-f4b5-4ecf-bb13-804d6618cf15 canonical-ubuntu-10.04-amd64 no 663656ce-2fe4-4164-b842-214f221cff55 canonical-ubuntu-12.04-amd64 no ad8a6e48-ea86-4afc-8aee-f427c02eb3ce canonical-ubuntu-13.04-amd64 no 6efbafc0-fcb1-4623-9f7a-17125bba413a centos-6.2 no e0184596-577f-4eb0-9887-d70117c6b77b debian-6.0.4-amd64 no
snowflake •Understand the costs associated with the features of your platform(s) of choice. •Chef enables Infrastructure Portability •Use the same infrastructure code for wherever you deploy •"Data Gravity" is a concern ™