The document discusses using Chef and infrastructure as code to automate cloud infrastructure. It describes how Chef allows defining infrastructure through code using nodes, roles, recipes, and attributes. Nodes can be provisioned and configured automatically using Chef recipes, which declare resources and are installed through Chef clients running on the nodes. Roles define recipes to apply to nodes. Cloud infrastructure like load balancers and web servers can be launched from templates and provisioned using Chef automation.
12. At a High Level...
‣ A library for configuration management
‣ A configuration management system
‣ A systems integration platform
‣ An API for your entire Infrastructure
http://www.flickr.com/photos/asten/2159525309/sizes/l/
Monday, September 27, 2010
23. Resources...
Declare a description of the state a part of the node should be in
‣ Have a type package "apache2" do
version "2.2.11-2ubuntu2.6"
action :install
‣ Have a name end
template "/etc/apache2/apache2.conf" do
‣ Have parameters source "apache2.conf.erb"
owner "root"
‣ Take action to put the group "root"
mode 0644
resource in the action :create
declared state end
http://www.flickr.com/photos/xiaming/382205902/sizes/l/
Monday, September 27, 2010
25. Providers...
Know how to actually perform the actions specified by a resource.
Apt, Yum, Rubygems,
Multiple providers
per resource type.
Portage, Macports,
FreeBSD Ports, etc.
http://www.flickr.com/photos/affableslinky/562950216/
Monday, September 27, 2010
26. Resources
Platform
Provider
http://www.flickr.com/photos/acurbelo/2628837104/sizes/o/
Monday, September 27, 2010
28. Recipes...
Apply resources in the order they are specified
package "apache2" do
version "2.2.11-2ubuntu2.6"
action :install
1
‣ Evaluates resources in [
end
the order they appear "package[apache2]",
"template[/etc/apache2/apache2.conf]"
template "/etc/apache2/apache2.conf" do
] source "apache2.conf.erb"
‣ Adds each resource to owner "root"
the Resource Collection group "root"
mode 0644
action :create
2
end
http://www.flickr.com/photos/roadsidepictures/2478953342/sizes/o/
Monday, September 27, 2010