SlideShare a Scribd company logo
1 of 13
Using Chef to Manage
     Your Server
    Environments
About Blend
DevOps
             (Development / Operations)

Combines disciplines of
software development /
    QA with system
     administration
Building/Deploying
•   Manually

•   Build scripts

•   “I want to tell this computer how it should be set up, and
    let it do the rest”
Chef
•   Client/Server system for managing configuration

•   Declarative Recipes define end state instead of
    construction process

•   Idempotent - re-running script only causes changes to
    execute
No scripts - recipes
•   Cookbooks - modules for adding support for software

•   Recipes - contained by cookbooks, define server
    configuration, templates, etc
•   Attributes - configurable variables consumed by
    recipes
    •  Recipes provide defaults, can be overridden by server,
       role, or environment
    •  Some generated automatically

•   Data Bags - hold arbitrary configuration data
Parts and pieces
•   Chef Server - holds cookbooks and configuration for
    your organization

•   Chef Client - installed on servers via bootstrap process
    to execute recipes, solo and client flavors

•   Ohai - discovery utility that extracts automatic attributes
    from servers

•   Knife - command line tool for managing chef
Managing/Orchestration
•   Chef Solo - One server, no management, cookbooks go
    on server

•   Hosted Chef - Opscode-provided server, fine-grained
    permission controls

•   Chef Server - Self-hosted chef management server

•   Chef supports git, but git repo and servers don’t talk
Development cycle
•   Create cookbook

•   Develop/Test

•   Upload recipe to chef server

•   Execute on client servers
Blend Server Layout
/Sites
     .conf - all apache vhost configs symlink here
     [sitename]
         conf - apache and other configs
         htdocs - web app, usually apache root dir
         logs - apache and other logs
         deploy - deploy scripts
Development tools
•   Berkshelf - code gen and dependency management

•   Vagrant - automated testing environments
Linkses
•   Chef - community.opscode.com

•   Berkshelf - berkshelf.com

•   Vagrant - vagrantup.com

•   Epic Tutorial -
    vialstudios.com/guide-authoring-cookbooks.html
Questions?
           Joe Kepley
        Blend Interactive

    http://blendinteractive.com
http://github.com/blendinteractive
    http://joind.in/8102
            @joekepley

More Related Content

What's hot

Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...Chef Software, Inc.
 
Drupal 7 Tutorial: Features Module
Drupal 7 Tutorial: Features ModuleDrupal 7 Tutorial: Features Module
Drupal 7 Tutorial: Features ModuleAcquia
 
2015 08-11-scdo-meetup
2015 08-11-scdo-meetup2015 08-11-scdo-meetup
2015 08-11-scdo-meetupSuresh Paulraj
 
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...Chef Software, Inc.
 
Opscode Webinar: Managing Your VMware Infrastructure with Chef
Opscode Webinar: Managing Your VMware Infrastructure with ChefOpscode Webinar: Managing Your VMware Infrastructure with Chef
Opscode Webinar: Managing Your VMware Infrastructure with ChefChef Software, Inc.
 
Growing Pains with Chef – a Tale of DevOps in a Large Organization
Growing Pains with Chef – a Tale of DevOps in a Large OrganizationGrowing Pains with Chef – a Tale of DevOps in a Large Organization
Growing Pains with Chef – a Tale of DevOps in a Large OrganizationChef Software, Inc.
 
Website building exercise
Website building exerciseWebsite building exercise
Website building exercisemeilai521
 
Breaking Technology Silos with Chef
Breaking Technology Silos with ChefBreaking Technology Silos with Chef
Breaking Technology Silos with ChefSean Walberg
 
Chef Cookbook Design Patterns
Chef Cookbook Design PatternsChef Cookbook Design Patterns
Chef Cookbook Design PatternsEric Krupnik
 
URLs in Joomla - How to get it right
URLs in Joomla - How to get it rightURLs in Joomla - How to get it right
URLs in Joomla - How to get it rightHackwar
 
SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...
SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...
SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...Marco Obinu
 
Build scripting with psake
Build scripting with psakeBuild scripting with psake
Build scripting with psakeAdam Crane
 
Armada - the way to ship microservices
Armada - the way to ship microservicesArmada - the way to ship microservices
Armada - the way to ship microservicesGameDesire Company
 
Era of server less computing
Era of server less computingEra of server less computing
Era of server less computingBaskar rao Dsn
 
Large web applications development
Large web applications developmentLarge web applications development
Large web applications developmentTaras Omelianenko
 

What's hot (20)

Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
 
Drupal 7 Tutorial: Features Module
Drupal 7 Tutorial: Features ModuleDrupal 7 Tutorial: Features Module
Drupal 7 Tutorial: Features Module
 
2015 08-11-scdo-meetup
2015 08-11-scdo-meetup2015 08-11-scdo-meetup
2015 08-11-scdo-meetup
 
Kafka api
Kafka apiKafka api
Kafka api
 
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
 
Chef
ChefChef
Chef
 
Opscode Webinar: Managing Your VMware Infrastructure with Chef
Opscode Webinar: Managing Your VMware Infrastructure with ChefOpscode Webinar: Managing Your VMware Infrastructure with Chef
Opscode Webinar: Managing Your VMware Infrastructure with Chef
 
Growing Pains with Chef – a Tale of DevOps in a Large Organization
Growing Pains with Chef – a Tale of DevOps in a Large OrganizationGrowing Pains with Chef – a Tale of DevOps in a Large Organization
Growing Pains with Chef – a Tale of DevOps in a Large Organization
 
Website building exercise
Website building exerciseWebsite building exercise
Website building exercise
 
Breaking Technology Silos with Chef
Breaking Technology Silos with ChefBreaking Technology Silos with Chef
Breaking Technology Silos with Chef
 
Website Redesign
Website RedesignWebsite Redesign
Website Redesign
 
Chef Cookbook Design Patterns
Chef Cookbook Design PatternsChef Cookbook Design Patterns
Chef Cookbook Design Patterns
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
 
URLs in Joomla - How to get it right
URLs in Joomla - How to get it rightURLs in Joomla - How to get it right
URLs in Joomla - How to get it right
 
SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...
SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...
SQL Start! 2019 - Ancona - Distribuisci ed amministra le tue istanze SQL Serv...
 
Build scripting with psake
Build scripting with psakeBuild scripting with psake
Build scripting with psake
 
Armada - the way to ship microservices
Armada - the way to ship microservicesArmada - the way to ship microservices
Armada - the way to ship microservices
 
Lighting talk android espesso recorder
Lighting talk   android espesso recorderLighting talk   android espesso recorder
Lighting talk android espesso recorder
 
Era of server less computing
Era of server less computingEra of server less computing
Era of server less computing
 
Large web applications development
Large web applications developmentLarge web applications development
Large web applications development
 

Viewers also liked

Recurring calendar
Recurring calendarRecurring calendar
Recurring calendarJoe Kepley
 
Introduction to puppet - Hands on Session at HPI Potsdam
Introduction to puppet - Hands on Session at HPI PotsdamIntroduction to puppet - Hands on Session at HPI Potsdam
Introduction to puppet - Hands on Session at HPI PotsdamChristoph Oelmüller
 
Automated infrastructure is on the menu
Automated infrastructure is on the menuAutomated infrastructure is on the menu
Automated infrastructure is on the menujtimberman
 
Published in 1885 and shared on facebook
Published in 1885 and shared on facebookPublished in 1885 and shared on facebook
Published in 1885 and shared on facebookJoe Kepley
 
Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...
Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...
Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...Paul Di Gangi
 

Viewers also liked (6)

Recurring calendar
Recurring calendarRecurring calendar
Recurring calendar
 
eZ publish for Magazine
eZ publish for MagazineeZ publish for Magazine
eZ publish for Magazine
 
Introduction to puppet - Hands on Session at HPI Potsdam
Introduction to puppet - Hands on Session at HPI PotsdamIntroduction to puppet - Hands on Session at HPI Potsdam
Introduction to puppet - Hands on Session at HPI Potsdam
 
Automated infrastructure is on the menu
Automated infrastructure is on the menuAutomated infrastructure is on the menu
Automated infrastructure is on the menu
 
Published in 1885 and shared on facebook
Published in 1885 and shared on facebookPublished in 1885 and shared on facebook
Published in 1885 and shared on facebook
 
Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...
Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...
Open Entrepreneurship: Exploring the Role of Entrepreneurs in Private-collect...
 

Similar to Managing Servers with Chef

CIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef CookbooksCIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef CookbooksICF CIRCUIT
 
Chef Intro @ SF Bay Area LSPE meetup
Chef Intro @ SF Bay Area LSPE meetupChef Intro @ SF Bay Area LSPE meetup
Chef Intro @ SF Bay Area LSPE meetupPromet Source
 
Compliance Automation with InSpec
Compliance Automation with InSpecCompliance Automation with InSpec
Compliance Automation with InSpec Nathen Harvey
 
Chef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation SetupChef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation SetupChef Software, Inc.
 
Introduction to Cooking with Chef
Introduction to Cooking with ChefIntroduction to Cooking with Chef
Introduction to Cooking with ChefJohn Osborne
 
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)Amazon Web Services
 
Chef for Openstack
Chef for OpenstackChef for Openstack
Chef for OpenstackMohit Sethi
 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Software, Inc.
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateAmazon Web Services
 
Introduction to OpsWorks for Chef Automate
Introduction to OpsWorks for Chef AutomateIntroduction to OpsWorks for Chef Automate
Introduction to OpsWorks for Chef AutomateAmazon Web Services
 
DevOps and Automation for Bioinformaticians
DevOps and Automation for BioinformaticiansDevOps and Automation for Bioinformaticians
DevOps and Automation for BioinformaticiansSimon Twigger
 
Chef at EIS
Chef at EISChef at EIS
Chef at EIScarpnick
 
Introduction To Continuous Compliance & Remediation
Introduction To Continuous Compliance & RemediationIntroduction To Continuous Compliance & Remediation
Introduction To Continuous Compliance & RemediationNicole Johnson
 
Configuration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech TalksConfiguration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech TalksAmazon Web Services
 

Similar to Managing Servers with Chef (20)

CIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef CookbooksCIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
 
AWS OpsWorks for Chef Automate
AWS OpsWorks for Chef AutomateAWS OpsWorks for Chef Automate
AWS OpsWorks for Chef Automate
 
Chef Intro @ SF Bay Area LSPE meetup
Chef Intro @ SF Bay Area LSPE meetupChef Intro @ SF Bay Area LSPE meetup
Chef Intro @ SF Bay Area LSPE meetup
 
Compliance Automation with InSpec
Compliance Automation with InSpecCompliance Automation with InSpec
Compliance Automation with InSpec
 
Chef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation SetupChef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation Setup
 
Chef fundamentals
Chef fundamentalsChef fundamentals
Chef fundamentals
 
Chef for openstack
Chef for openstackChef for openstack
Chef for openstack
 
Introduction to Cooking with Chef
Introduction to Cooking with ChefIntroduction to Cooking with Chef
Introduction to Cooking with Chef
 
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
 
Chef: Smart infrastructure automation
Chef: Smart infrastructure automationChef: Smart infrastructure automation
Chef: Smart infrastructure automation
 
Chef for Openstack
Chef for OpenstackChef for Openstack
Chef for Openstack
 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of Chef
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef Automate
 
Introduction to OpsWorks for Chef Automate
Introduction to OpsWorks for Chef AutomateIntroduction to OpsWorks for Chef Automate
Introduction to OpsWorks for Chef Automate
 
Learning chef
Learning chefLearning chef
Learning chef
 
DevOps and Automation for Bioinformaticians
DevOps and Automation for BioinformaticiansDevOps and Automation for Bioinformaticians
DevOps and Automation for Bioinformaticians
 
Chef at EIS
Chef at EISChef at EIS
Chef at EIS
 
DevOps and Chef improve your life
DevOps and Chef improve your life DevOps and Chef improve your life
DevOps and Chef improve your life
 
Introduction To Continuous Compliance & Remediation
Introduction To Continuous Compliance & RemediationIntroduction To Continuous Compliance & Remediation
Introduction To Continuous Compliance & Remediation
 
Configuration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech TalksConfiguration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech Talks
 

Managing Servers with Chef

  • 1. Using Chef to Manage Your Server Environments
  • 3. DevOps (Development / Operations) Combines disciplines of software development / QA with system administration
  • 4. Building/Deploying • Manually • Build scripts • “I want to tell this computer how it should be set up, and let it do the rest”
  • 5. Chef • Client/Server system for managing configuration • Declarative Recipes define end state instead of construction process • Idempotent - re-running script only causes changes to execute
  • 6. No scripts - recipes • Cookbooks - modules for adding support for software • Recipes - contained by cookbooks, define server configuration, templates, etc • Attributes - configurable variables consumed by recipes • Recipes provide defaults, can be overridden by server, role, or environment • Some generated automatically • Data Bags - hold arbitrary configuration data
  • 7. Parts and pieces • Chef Server - holds cookbooks and configuration for your organization • Chef Client - installed on servers via bootstrap process to execute recipes, solo and client flavors • Ohai - discovery utility that extracts automatic attributes from servers • Knife - command line tool for managing chef
  • 8. Managing/Orchestration • Chef Solo - One server, no management, cookbooks go on server • Hosted Chef - Opscode-provided server, fine-grained permission controls • Chef Server - Self-hosted chef management server • Chef supports git, but git repo and servers don’t talk
  • 9. Development cycle • Create cookbook • Develop/Test • Upload recipe to chef server • Execute on client servers
  • 10. Blend Server Layout /Sites .conf - all apache vhost configs symlink here [sitename] conf - apache and other configs htdocs - web app, usually apache root dir logs - apache and other logs deploy - deploy scripts
  • 11. Development tools • Berkshelf - code gen and dependency management • Vagrant - automated testing environments
  • 12. Linkses • Chef - community.opscode.com • Berkshelf - berkshelf.com • Vagrant - vagrantup.com • Epic Tutorial - vialstudios.com/guide-authoring-cookbooks.html
  • 13. Questions? Joe Kepley Blend Interactive http://blendinteractive.com http://github.com/blendinteractive http://joind.in/8102 @joekepley

Editor's Notes

  1. - Automated releases - version control - Agile practices we know from dev can be used in server/config management
  2. Manual - tough to do same way twice, time consuming Build scripts - Brittle (tied to environment), hard to follow