SlideShare a Scribd company logo
Sysops cu Chef
infrastructură sub formă de cod




             Istvan Hoka
          Cluj.rb - clujrb.org
          www.zencash.com
Intro

1. Chef: ce problema rezolva si cum o
   rezolva
2. Un mod usor de a incerca Chef
3. Folosire Chef la infrastructura
   pentru inceput
Chef
http://www.opscode.com/chef/
"An open-source systems
 integration framework built
specifically for automating the
            cloud."
automating the
    cloud
automating the
    cloud
      ?
Sysops cu Chef
Rails app
• Nginx      • Solr
• Unicorn    • Monit
• Rails      • Cron
• MySQL      • Amazon EC2
• Redis      • Ubuntu
• Memcache   • Sysadmin: Gigel
The Server
Sysops cu Chef
Jackpot!
Sysops cu Chef
Mission
accomplished




    The Server
Scaling
Take #2




App             DB
Scaling!
Take #3
                            Load balancer




 App 1              App 2                   App 3             App 4



                                                    Cache 1         Cache 2


Index 1        DB Master            Redis Master
                                                          Cache 3



          Slave 1    Slave 2          Slave
Cum rezolvă Chef
   problema?
Chef server
                                   Node. Role:
                                      LB




Node. Role: App      Node. Role: App      Node. Role: App      Node. Role: App



                                                               Cache 1           Cache 2


   Index 1             DB Master          Redis Master
                                                                       Cache 3



                  Slave 1   Slave 2          Slave
Cookbooks
                            Chef Server
                                               Roles
                                             Data Bags

                Cookbooks                 Nodes
                  Nodes
                Data Bags
                  Roles
                                                                  Node
                                                               (chef-client)

                    Commands

                                                      Node                    Node
   knife                                           (chef-client)           (chef-client)
(chef-client)
Chef Server
•   HTTP API
    ‣   knife

    ‣   chef-solo
•   CouchDB
    ‣   cookbooks: libraries, attributes, definitions, recipes
    ‣   nodes
    ‣   roles

    ‣   data bags
•   RabbitMQ
•   Solr
•   Web UI
chef-client run
•   Convergence

    ‣   Build, Register, and Authenticate the Node

    ‣   Synchronize Cookbooks

•   Compile

    ‣   Assemble Libraries, Attributes, Definitions, Recipes

•   Execute

    ‣   Converge

    ‣   Save node

    ‣   Run notifications
Cookbooks
• Attributes
• Definitions
• Libraries
• Templates
• Metadata
• Recipes
• Ruby, JSON, ERB
Chef “Hello World”?

• Chef Server
• Chef client
• Chef workstation
Chef Hello World


1. Hosted Chef + AWS EC2
2. Virtualization
Vagrant
http://vagrantup.com/
Vagrant


• Oracle VirtualBox - virtualbox.org
• Chef Solo
Vagrant setup
1. Install VirtualBox
2. Install Vagrant
3. Setup
Vagrantfile
Vagrant
                        Apache
                        MySQL
                       Memcache
                         Redis



`pwd`                   /vagrant


                   Guest OS (VirtualBox): Linux




           Host OS: Windows, OSX, Linux
Cookbooks
• https://github.com/opscode-
  cookbooks

• https://github.com/37signals/
  37s_cookbooks

• https://github.com/engineyard/ey-
  cloud-recipes

• https://github.com/cookbooks
Vagrant

• Web dev pe Linux de pe Windows,
  OSX

• Izolare
• Configuratie repetabila
Chef Solo +
Capistrano
Chef

• Infrastructura ca si cod
• Configuratie repetabila
• Scalabil

More Related Content

KEY
Cooking with Chef
PDF
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
PDF
PDF
ODP
DevOps and Chef improve your life
PDF
Chef, Vagrant and Friends
PDF
Chef or how to make computers do the work for us
PDF
Architecting for the cloud
Cooking with Chef
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
DevOps and Chef improve your life
Chef, Vagrant and Friends
Chef or how to make computers do the work for us
Architecting for the cloud

What's hot (20)

PDF
Rails cantrips
PDF
[MDBCI] Mariadb continuous integration tool
PDF
CukeUp! 2012: Michael Nacos on Just enough infrastructure for product develop...
PDF
DevOps
PDF
Introduction to chef framework
PPTX
Replicate a MySQL databaseCCDQ&A
PDF
Puppet Development Workflow
PDF
What is Chef and how we use it at tripsta
PDF
Infrastructure Automation with Chef
PDF
Testing with Ansible
PDF
PDF
docker build with Ansible
PDF
Chaione Ember.js Training
PDF
Superb Supervision of Short-lived Servers with Sensu
PDF
Atmosphere 2014: Really large scale systems configuration - Phil Dibowitz
PDF
Ansible 2 and Ansible Galaxy 2
PPTX
20131002
PPTX
Monitor-Driven Development Using Ansible
PPTX
London Hashicorp Meetup #22 - Congruent infrastructure @zopa by Ben Coughlan
PDF
CHEF - by Scott Russel
Rails cantrips
[MDBCI] Mariadb continuous integration tool
CukeUp! 2012: Michael Nacos on Just enough infrastructure for product develop...
DevOps
Introduction to chef framework
Replicate a MySQL databaseCCDQ&A
Puppet Development Workflow
What is Chef and how we use it at tripsta
Infrastructure Automation with Chef
Testing with Ansible
docker build with Ansible
Chaione Ember.js Training
Superb Supervision of Short-lived Servers with Sensu
Atmosphere 2014: Really large scale systems configuration - Phil Dibowitz
Ansible 2 and Ansible Galaxy 2
20131002
Monitor-Driven Development Using Ansible
London Hashicorp Meetup #22 - Congruent infrastructure @zopa by Ben Coughlan
CHEF - by Scott Russel
Ad

Similar to Sysops cu Chef (20)

PDF
Chef 11 Preview/Chef for OpenStack
PDF
Achieving Infrastructure Portability with Chef
PDF
Chef for OpenStack - OpenStack Fall 2012 Summit
PDF
Chef for OpenStack- Fall 2012.pdf
PDF
Australian OpenStack User Group August 2012: Chef for OpenStack
PDF
OpenStack Deployments with Chef
PDF
Automating your infrastructure with Chef
PDF
under the covers -- chef in 20 minutes or less
PDF
OSDC 2013 | Introduction into Chef by Andy Hawkins
PDF
Chef Intro @ SF Bay Area LSPE meetup
KEY
Automate or Die
PDF
Chef - industrialize and automate your infrastructure
PDF
SCALE12X Build a Cloud Day: Chef: The Swiss Army Knife of Cloud Infrastructure
PPTX
Kickstarter - Chef Opswork
KEY
SELF 2011: Deploying Django Application Stacks with Chef
PDF
Shell's Kitchen: Infrastructure As Code (Webexpo 2012)
PDF
Cooking 5 Star Infrastructure with Chef
PDF
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
KEY
Using Nagios with Chef
PDF
Velocity 2011 Chef OpenStack Workshop
Chef 11 Preview/Chef for OpenStack
Achieving Infrastructure Portability with Chef
Chef for OpenStack - OpenStack Fall 2012 Summit
Chef for OpenStack- Fall 2012.pdf
Australian OpenStack User Group August 2012: Chef for OpenStack
OpenStack Deployments with Chef
Automating your infrastructure with Chef
under the covers -- chef in 20 minutes or less
OSDC 2013 | Introduction into Chef by Andy Hawkins
Chef Intro @ SF Bay Area LSPE meetup
Automate or Die
Chef - industrialize and automate your infrastructure
SCALE12X Build a Cloud Day: Chef: The Swiss Army Knife of Cloud Infrastructure
Kickstarter - Chef Opswork
SELF 2011: Deploying Django Application Stacks with Chef
Shell's Kitchen: Infrastructure As Code (Webexpo 2012)
Cooking 5 Star Infrastructure with Chef
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Using Nagios with Chef
Velocity 2011 Chef OpenStack Workshop
Ad

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
A Presentation on Artificial Intelligence
PPTX
Machine Learning_overview_presentation.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Unlocking AI with Model Context Protocol (MCP)
A Presentation on Artificial Intelligence
Machine Learning_overview_presentation.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cloud_computing_Infrastucture_as_cloud_p
TLE Review Electricity (Electricity).pptx
Programs and apps: productivity, graphics, security and other tools
A comparative study of natural language inference in Swahili using monolingua...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Heart disease approach using modified random forest and particle swarm optimi...
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Network Security Unit 5.pdf for BCA BBA.
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Sysops cu Chef

Editor's Notes