SlideShare una empresa de Scribd logo
1 de 56
Descargar para leer sin conexión
configuration management with


                           chef
                                jeff wallace
                           jeff@evolvingweb.ca
Sunday, October 24, 2010
i suck
            at titles
Sunday, October 24, 2010
Configuration Management
                                                 DrupalCamp NYC 8




http://www.flickr.com/photos/acmace/4434408330/
Sunday, October 24, 2010
Configuration Management
                                                 DrupalCamp NYC 8




                                                  10 people...

http://www.flickr.com/photos/acmace/4434408330/
Sunday, October 24, 2010
Configuration Management w/Chef
                                             DrupalCampMTL 2010




http://www.flickr.com/photos/cfso1952/3597279132/
Sunday, October 24, 2010
Configuration Management w/Chef
                                             DrupalCampMTL 2010



                                                   11 people?


http://www.flickr.com/photos/cfso1952/3597279132/
Sunday, October 24, 2010
what the hell is
           configuration
           management
Sunday, October 24, 2010
server configuration



Sunday, October 24, 2010
server configuration


                           code
Sunday, October 24, 2010
server configuration


                             code
                           *we’re all programers!
Sunday, October 24, 2010
blueprints for
your servers
http://www.hunterhomesnh.com/gallery.php?var=1
Sunday, October 24, 2010
and the factory
     to build it

http://www.flickr.com/photos/theodevil/4278796647/
Sunday, October 24, 2010
what are
                            the tools
http://www.flickr.com/photos/ontario_wanderer/3496185271/

Sunday, October 24, 2010
started in 1993
                                 written in C




                           Argonne National Laboratory
                                written in python

Sunday, October 24, 2010
first release in 2005
                             written in ruby
                              puppet DSL
                             similar to chef




Sunday, October 24, 2010
chef

http://www.flickr.com/photos/28056346@N06/3025510447/
Sunday, October 24, 2010
first release in 2009
                                   written in ruby
                                   pure ruby DSL


http://www.flickr.com/photos/28056346@N06/3025510447/
Sunday, October 24, 2010
Sunday, October 24, 2010
quick run down

Sunday, October 24, 2010
chef-client  runs on each machine




Sunday, October 24, 2010
chef-server        manages each machine




Sunday, October 24, 2010
chef-solo
                           sever and client all-in-one




Sunday, October 24, 2010
every machine you
                       configure is a node


Sunday, October 24, 2010
every machine you
                       configure is a node

                            *yeah more nodes!
Sunday, October 24, 2010
nodes have attributes


Sunday, October 24, 2010
$ ohai




Sunday, October 24, 2010
$ ohai




                           *just a snippet

Sunday, October 24, 2010
attributes can be
                           searched with solr



                                http://wiki.opscode.com/display/chef/Search
Sunday, October 24, 2010
attributes can be
                           searched with solr


                            *nodes + searching ... is this a drupal site?

                                      http://wiki.opscode.com/display/chef/Search
Sunday, October 24, 2010
every node can be
                             assigned a role
                             myql server, apache server, both



Sunday, October 24, 2010
every node has a run list
                           list of roles and recipes
                                applied in order



Sunday, October 24, 2010
every node has a set of
               resources
                           this is what chef manages



Sunday, October 24, 2010
resource
Sunday, October 24, 2010
*a resource has an action



Sunday, October 24, 2010
*resources have attributes
                             *allow multiple actions


Sunday, October 24, 2010
*resources have attributes
                             *allow multiple actions


Sunday, October 24, 2010
*resources have attributes
                             *allow multiple actions


Sunday, October 24, 2010
*resources can notify other resources




Sunday, October 24, 2010
my.cnf.erb




                             *attributes

Sunday, October 24, 2010
my.cnf.erb




                             *attributes

Sunday, October 24, 2010
attributes



                           *can be overridden
                               *searchable

Sunday, October 24, 2010
*adds cronjob to crontab for www-data user



                           lots more: http://wiki.opscode.com/display/chef/Resources
Sunday, October 24, 2010
recipe
Sunday, October 24, 2010
*group of resources
                              *run in order
Sunday, October 24, 2010
cookbook
Sunday, October 24, 2010
cookbook




Sunday, October 24, 2010
file resolution




Sunday, October 24, 2010
some useful
                           examples for
                            drupalists
Sunday, October 24, 2010
drush




Sunday, October 24, 2010
git checkout




Sunday, October 24, 2010
git checkout




Sunday, October 24, 2010
git checkout




Sunday, October 24, 2010
git checkout




                              branch




Sunday, October 24, 2010
Sunday, October 24, 2010
demo?

Sunday, October 24, 2010
thanks!
                                 jeff wallace
                            jeff@evolvingweb.ca

                           *questions and comments encouraged
Sunday, October 24, 2010

Más contenido relacionado

Similar a 44275732 chef

Gail Lovely - DEN webinar10.23.10
Gail Lovely - DEN webinar10.23.10Gail Lovely - DEN webinar10.23.10
Gail Lovely - DEN webinar10.23.10
Gail Lovely
 
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP GroupDeveloping Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
minddog
 
From where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced itFrom where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced it
minddog
 
Omeka: Open Source for Open Museums? (MCN 2010)
Omeka: Open Source for Open Museums? (MCN 2010)Omeka: Open Source for Open Museums? (MCN 2010)
Omeka: Open Source for Open Museums? (MCN 2010)
Sharon Leon
 
Introduction to OAuth2
Introduction to OAuth2Introduction to OAuth2
Introduction to OAuth2
leondu
 
Drupalmatinee.devtools.v2
Drupalmatinee.devtools.v2Drupalmatinee.devtools.v2
Drupalmatinee.devtools.v2
Joeri Poesen
 

Similar a 44275732 chef (20)

RubyConf UY 2010
RubyConf UY 2010RubyConf UY 2010
RubyConf UY 2010
 
Drupal Distributions: The Dos and Don'ts:
Drupal Distributions: The Dos and Don'ts:Drupal Distributions: The Dos and Don'ts:
Drupal Distributions: The Dos and Don'ts:
 
For every site a make file
For every site a make fileFor every site a make file
For every site a make file
 
Sencha Touch Workshop
Sencha Touch WorkshopSencha Touch Workshop
Sencha Touch Workshop
 
Paul Querna - libcloud
Paul Querna - libcloudPaul Querna - libcloud
Paul Querna - libcloud
 
5 Mistakes of Massive CSS
5 Mistakes of Massive CSS5 Mistakes of Massive CSS
5 Mistakes of Massive CSS
 
Gail Lovely - DEN webinar10.23.10
Gail Lovely - DEN webinar10.23.10Gail Lovely - DEN webinar10.23.10
Gail Lovely - DEN webinar10.23.10
 
How to Manage Your Reputation Online: Me & My Web Shadow - the slideshow of t...
How to Manage Your Reputation Online: Me & My Web Shadow - the slideshow of t...How to Manage Your Reputation Online: Me & My Web Shadow - the slideshow of t...
How to Manage Your Reputation Online: Me & My Web Shadow - the slideshow of t...
 
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP GroupDeveloping Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
 
From where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced itFrom where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced it
 
Html5 Apps
Html5 AppsHtml5 Apps
Html5 Apps
 
Omeka: Open Source for Open Museums? (MCN 2010)
Omeka: Open Source for Open Museums? (MCN 2010)Omeka: Open Source for Open Museums? (MCN 2010)
Omeka: Open Source for Open Museums? (MCN 2010)
 
Introduction to OAuth2
Introduction to OAuth2Introduction to OAuth2
Introduction to OAuth2
 
HTML5/CSS3 @ Baidu
HTML5/CSS3 @ BaiduHTML5/CSS3 @ Baidu
HTML5/CSS3 @ Baidu
 
Clojure in the Field
Clojure in the FieldClojure in the Field
Clojure in the Field
 
Plone Conference 2010 – Where we go from here
Plone Conference 2010 – Where we go from herePlone Conference 2010 – Where we go from here
Plone Conference 2010 – Where we go from here
 
Continuous Integration Testing for Plone Using Hudson
Continuous Integration Testing for Plone Using HudsonContinuous Integration Testing for Plone Using Hudson
Continuous Integration Testing for Plone Using Hudson
 
Drupalmatinee.devtools.v2
Drupalmatinee.devtools.v2Drupalmatinee.devtools.v2
Drupalmatinee.devtools.v2
 
Laying Pipe with Transmogrifier
Laying Pipe with TransmogrifierLaying Pipe with Transmogrifier
Laying Pipe with Transmogrifier
 
Gerenciamento Servidores com o Spacewalk
Gerenciamento Servidores com o SpacewalkGerenciamento Servidores com o Spacewalk
Gerenciamento Servidores com o Spacewalk
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 

44275732 chef