SlideShare a Scribd company logo
Introduction
to Chef
What is DevOps?
Developers
It works on my
machine
I need Java 1.7
BTW the
deployment is due
tomorrow
SysAdmin
We don’t support
that version
The architecture doesn’t match
our network, deployment or
security model
We weren’t consulted about
security/monitoring/backup/
provisioning
The wall of confusion
The constant battle ...
Change
VS
Stability
We Should
talk!
We Should
talk!
DevOps
Emphasizes
● Communication
● Collaboration
● Integration
between developers and operations.
Chef
● Open source configuration management tool
● Works best when developers and operations work
together
● “DevOps” is not a must for Chef to be successful
● But it helps
Your infrastructure becomes ...
● Testable
● Versioned
● Repeatable
● Distributable
Chef major components
● Chef server
● Chef client
● Workstation
Chef Architecture
Chef key concepts
● Organizations
● Environments
● Roles
● Nodes
● Recipes
● Cookbooks
● Knife
● Ohai
Organizations
● A single instance of chef server can support multiple
organizations
● Each organization has a unique set of groups and users
● Share nothing with other organizations
● May represent different
○ Companies
○ Business units
○ Departments
Environments
● Model the life-stages of your applications
● Every organization starts with a single environment
● Environments to reflect your patterns and workflow
○ Development
○ Test
○ Staging
○ Production
Roles
● Represent the type of servers in your
infrastructure
○ Load balancer
○ Application server
○ Database
○ Monitoring
Nodes
● Nodes represent the servers in your
infrastructure
● Can be either physical or virtual servers
● Can be hardware that you own or can be
compute instances in a public or private
cloud
Nodes...
● Chef client runs on each node
● Chef client will
○ Gather current system configurations
○ Download the desired system configuration from
chef server
○ Configure the node such that it adheres to the policy
Resources
● A resource represents a piece of the system
and its desired state
○ A package that should be installed
○ A service which should be running
○ A file which should be generated
○ A cron job that should be configured
○ A user that should be managed
○ And more
Resources in recipes
● Resources are the fundamental building
blocks of chef configuration
● Resources are gathered into recipes
● Recipes ensure the system is in the desired
state
Recipes
● Configuration files that describe resources
and their desired state
● Recipes can:
○ Install and configure software components
○ Manage files
○ Deploy applications
○ Execute other recipes
○ and more
Cookbooks
● Recipes are stored in cookbooks
● Cookbooks contain recipes, templates, files,
custom resources, etc
● Code re-use and modularity
Run Lists
● The Run list is a collection of policies that
the node should follow.
● Chef-client obtains the run list from chef-
server
● Chef-client ensures the node complies with
the policy in the run list
Knife
A CLI that provides an interface between a Workstation and
the Chef Server. It manages,
● Nodes
● Cookbooks and recipes
● Roles
● Environments
● Cloud resources
Ohai
● Detects attributes on a node
● Provide attributes to chef-client
● Type of attributes Ohai collects
○ Platform details
○ Network usage
○ Memory usage
○ CPU data
○ Kernal data
○ and many more
Flavors of Chef
Flavors of Chef
● Hosted Enterprise Chef
○ SaaS, Hosted at Opscode
○ Manage up to 50,000 servers
○ 24x7 support
○ Pay/Grow as you need
○ Free upto 5 nodes
Flavors of Chef
● Enterprise Chef
○ All the power of Hosted Chef, behind the firewall
○ Delivered as enterprise software
○ Free of charge up to 5 nodes
○ Customer needs to take care of provisioning the
infrastructure
Flavors of Chef
● Open Source Chef Server
○ Core components of Chef Server are released as
open source
○ No enterprise features (yet people use them)
○ No enterprise support
Flavors of Chef
● Chef-solo
○ Allows using cookbooks on nodes without requiring
a chef-server
○ Runs locally and requires cookbooks to be on the
same machine
○ A limited version of the chef-client
Learn Chef!
Let’s Learn Chef
● https://learn.chef.io
● https://docs.chef.io
● https://www.chef.io/resources/solutions
● https://www.youtube.com/user/Opscode
Thank You!

More Related Content

PDF
Server Installation and Configuration with Chef
PPT
Chef, Devops, and You
PPTX
Chef introduction
PDF
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
PDF
Automating your infrastructure with Chef
PDF
Automating Infrastructure with Chef
PPTX
Introduction to chef
PDF
Infrastructure Automation with Chef
Server Installation and Configuration with Chef
Chef, Devops, and You
Chef introduction
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Automating your infrastructure with Chef
Automating Infrastructure with Chef
Introduction to chef
Infrastructure Automation with Chef

What's hot (19)

PPTX
Understand Chef
PPTX
AWS Meetup - Sydney - February
PPT
Overview of chef ( Infrastructure as a Code )
PDF
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
PDF
Velocity2011 chef-workshop
PDF
Chef Fundamentals Training Series Module 1: Overview of Chef
PDF
Learning chef
PDF
Chef: Smart infrastructure automation
ODP
Introduction to Chef
PDF
Overview of Chef - Fundamentals Webinar Series Part 1
PDF
Introduction to Chef - April 22 2015
PDF
Introduction to Chef - Techsuperwomen Summit
PDF
Compliance as Code
PPTX
CLUG 2014-10 - Cookbook CI with Jenkins
PDF
Chef ignited a DevOps revolution – BK Box
PPTX
How to Write Chef Cookbook
PDF
Test-Driven Infrastructure with Chef
PPTX
Infrastructure modeling with chef
PPTX
Testing for infra code using test-kitchen,docker,chef
Understand Chef
AWS Meetup - Sydney - February
Overview of chef ( Infrastructure as a Code )
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Velocity2011 chef-workshop
Chef Fundamentals Training Series Module 1: Overview of Chef
Learning chef
Chef: Smart infrastructure automation
Introduction to Chef
Overview of Chef - Fundamentals Webinar Series Part 1
Introduction to Chef - April 22 2015
Introduction to Chef - Techsuperwomen Summit
Compliance as Code
CLUG 2014-10 - Cookbook CI with Jenkins
Chef ignited a DevOps revolution – BK Box
How to Write Chef Cookbook
Test-Driven Infrastructure with Chef
Infrastructure modeling with chef
Testing for infra code using test-kitchen,docker,chef
Ad

Similar to Introduction to Chef (20)

ODP
DevOps and Chef improve your life
PDF
Introduction to Cooking with Chef
PDF
What is Chef and how we use it at tripsta
PPTX
Chef for Openstack
PDF
Chef for openstack
PPTX
Chef fundamentals
PDF
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
PPTX
Kickstarter - Chef Opswork
PDF
DOO-009_Powering High Velocity Development for your Infrastructure
PDF
TXLF: Chef- Software Defined Infrastructure Today & Tomorrow
PDF
OSDC 2013 | Introduction into Chef by Andy Hawkins
PPTX
Introduction to chef
PDF
Chef & OpenStack: OSCON 2014
PDF
PDF
Cook like a Chef
PDF
PDF
DEVNET-1007 Network Infrastructure as Code with Chef and Cisco
PPTX
Chef onlinuxonpower
PPTX
Achieving DevOps Success with Chef Automate
DevOps and Chef improve your life
Introduction to Cooking with Chef
What is Chef and how we use it at tripsta
Chef for Openstack
Chef for openstack
Chef fundamentals
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Kickstarter - Chef Opswork
DOO-009_Powering High Velocity Development for your Infrastructure
TXLF: Chef- Software Defined Infrastructure Today & Tomorrow
OSDC 2013 | Introduction into Chef by Andy Hawkins
Introduction to chef
Chef & OpenStack: OSCON 2014
Cook like a Chef
DEVNET-1007 Network Infrastructure as Code with Chef and Cisco
Chef onlinuxonpower
Achieving DevOps Success with Chef Automate
Ad

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Electronic commerce courselecture one. Pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation_ Review paper, used for researhc scholars
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
“AI and Expert System Decision Support & Business Intelligence Systems”
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
MIND Revenue Release Quarter 2 2025 Press Release
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
Spectral efficient network and resource selection model in 5G networks
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars

Introduction to Chef

  • 3. Developers It works on my machine I need Java 1.7 BTW the deployment is due tomorrow
  • 4. SysAdmin We don’t support that version The architecture doesn’t match our network, deployment or security model We weren’t consulted about security/monitoring/backup/ provisioning
  • 5. The wall of confusion
  • 6. The constant battle ... Change VS Stability
  • 8. DevOps Emphasizes ● Communication ● Collaboration ● Integration between developers and operations.
  • 9. Chef ● Open source configuration management tool ● Works best when developers and operations work together ● “DevOps” is not a must for Chef to be successful ● But it helps
  • 10. Your infrastructure becomes ... ● Testable ● Versioned ● Repeatable ● Distributable
  • 11. Chef major components ● Chef server ● Chef client ● Workstation
  • 13. Chef key concepts ● Organizations ● Environments ● Roles ● Nodes ● Recipes ● Cookbooks ● Knife ● Ohai
  • 14. Organizations ● A single instance of chef server can support multiple organizations ● Each organization has a unique set of groups and users ● Share nothing with other organizations ● May represent different ○ Companies ○ Business units ○ Departments
  • 15. Environments ● Model the life-stages of your applications ● Every organization starts with a single environment ● Environments to reflect your patterns and workflow ○ Development ○ Test ○ Staging ○ Production
  • 16. Roles ● Represent the type of servers in your infrastructure ○ Load balancer ○ Application server ○ Database ○ Monitoring
  • 17. Nodes ● Nodes represent the servers in your infrastructure ● Can be either physical or virtual servers ● Can be hardware that you own or can be compute instances in a public or private cloud
  • 18. Nodes... ● Chef client runs on each node ● Chef client will ○ Gather current system configurations ○ Download the desired system configuration from chef server ○ Configure the node such that it adheres to the policy
  • 19. Resources ● A resource represents a piece of the system and its desired state ○ A package that should be installed ○ A service which should be running ○ A file which should be generated ○ A cron job that should be configured ○ A user that should be managed ○ And more
  • 20. Resources in recipes ● Resources are the fundamental building blocks of chef configuration ● Resources are gathered into recipes ● Recipes ensure the system is in the desired state
  • 21. Recipes ● Configuration files that describe resources and their desired state ● Recipes can: ○ Install and configure software components ○ Manage files ○ Deploy applications ○ Execute other recipes ○ and more
  • 22. Cookbooks ● Recipes are stored in cookbooks ● Cookbooks contain recipes, templates, files, custom resources, etc ● Code re-use and modularity
  • 23. Run Lists ● The Run list is a collection of policies that the node should follow. ● Chef-client obtains the run list from chef- server ● Chef-client ensures the node complies with the policy in the run list
  • 24. Knife A CLI that provides an interface between a Workstation and the Chef Server. It manages, ● Nodes ● Cookbooks and recipes ● Roles ● Environments ● Cloud resources
  • 25. Ohai ● Detects attributes on a node ● Provide attributes to chef-client ● Type of attributes Ohai collects ○ Platform details ○ Network usage ○ Memory usage ○ CPU data ○ Kernal data ○ and many more
  • 27. Flavors of Chef ● Hosted Enterprise Chef ○ SaaS, Hosted at Opscode ○ Manage up to 50,000 servers ○ 24x7 support ○ Pay/Grow as you need ○ Free upto 5 nodes
  • 28. Flavors of Chef ● Enterprise Chef ○ All the power of Hosted Chef, behind the firewall ○ Delivered as enterprise software ○ Free of charge up to 5 nodes ○ Customer needs to take care of provisioning the infrastructure
  • 29. Flavors of Chef ● Open Source Chef Server ○ Core components of Chef Server are released as open source ○ No enterprise features (yet people use them) ○ No enterprise support
  • 30. Flavors of Chef ● Chef-solo ○ Allows using cookbooks on nodes without requiring a chef-server ○ Runs locally and requires cookbooks to be on the same machine ○ A limited version of the chef-client
  • 32. Let’s Learn Chef ● https://learn.chef.io ● https://docs.chef.io ● https://www.chef.io/resources/solutions ● https://www.youtube.com/user/Opscode