SlideShare a Scribd company logo
Chef Tutorial | Chef Tutorial For Beginners | DevOps Chef Tutorial | DevOps Tools | Simplilearn
What’s in it for you?
Chef demo
Chef architecture
Why use Chef?
What is Chef?
Configuration Management
Components of Chef
Infrastructure as Code
Flavours of Chef
Why use Chef?
Large companies have a constantly changing
infrastructure that requires to be configured and
maintained time to time
Why use Chef?
Large companies have a constantly changing
infrastructure that requires to be configured and
maintained time to time
Why use Chef?
New nodes may get added
Existing systems may fail
Large companies have a constantly changing
infrastructure that requires to be configured and
maintained time to time
Why use Chef?
New nodes may get added
Existing systems may fail
I can’t do it all by myself..
Large companies have a constantly changing
infrastructure that requires to be configured and
maintained time to time
Why use Chef?
This is where Chef comes in and automates the entire
process
Continuous deployment:
-Software is deployed continuously enabling a company to keep in
pace with the market requirements
Why use Chef?
Chef provides:
Continuous deployment:
-Software is deployed continuously enabling a company to keep in
pace with the market requirements
Increase system robustness:
-Infrastructure automation ensures all bugs are caught and removed
before deploying the software
Why use Chef?
Chef provides:
Continuous deployment:
-Software is deployed continuously enabling a company to keep in
pace with the market requirements
Increase system robustness:
-Infrastructure automation ensures all bugs are caught and removed
before deploying the software
Adapt to the Cloud:
-Chef easily integrates with infrastructure on cloud
Why use Chef?
Chef provides:
What is Chef?
Chef is an open source tool developed by OpsCode
What is Chef?
Chef is an open source tool developed by OpsCode
What is Chef?
It is written in Ruby and Erlang
Chef is an open source tool developed by OpsCode
It is written in Ruby and Erlang
It automates configuration and maintenance of multiple servers
What is Chef?
Configuration Management
Configuration Management
Configuration management is a collection of engineering practices that provides a systematic
way to manage entities for efficient deployment.These entities include
Code Infrastructure people
Configuration Management
Configuration management is a collection of engineering practices that provides a systematic
way to manage entities for efficient deployment.These entities include
Code Infrastructure people
Configuration Management
Code needs to be
updated and stored
Infrastructure needs to
be configured
People need
coordination
Configuration Management
A configuration management tool automates these activities. There are two
types of configuration management
Server Server
Configuration Management
Chef follows pull configuration
Server Server
Infrastructure as code
Infrastructure as code
This isTim. He’s working at a large scale company as a system
administrator
Infrastructure as code
I must set up a server and install 20
software applications over it
Infrastructure as code
I must set up a server and install 20
software applications over it
Server is set up
Infrastructure as code
I must set up a server and install 20
software applications over it
Server is set up
It will take me all night to install all 20
software applications though
Infrastructure as code
Server is set up
This wouldn’t be the case if i had a code for installing all
the software rather than doing it manually
I must set up a server and install 20
software applications over it
It will take me all night to install all 20
software applications though
Infrastructure as code
modified
tested
deployed
I could modify the code to meet the software
installation requirements
Infrastructure as code
modified
tested
deployed
Code could be tested to catch any bugs
Infrastructure as code
modified
tested
deployed
Code can be easily deployed and all
installations would take place automatically
Infrastructure as code
Policies and configurations Code
written as
This makes configuration management simpler and
more efficient
Infrastructure as code is a type of it infrastructure where the operations
team manages the code rather than a manual procedure
Components of Chef
workstation
The code for configuring and managing the infrastructure is
created here
Knife is a command line tool that uploads the cookbook to the server
Components of Chef
SERVER
The server is where the Cookbooks are stored
It provides tools required to drive the node configurations
Server may be hosted local or remote
The server is the middle man between workstation and the nodes
Components of Chef
node
Ohai fetches the current state of the node it’s located in
Chef client is responsible for the communication with the server
Each node can have a different configuration requirement
Nodes are the systems that require the configuration
Components of Chef
Chef architecture
Recipes are created at the workstation
Chef architecture
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn1.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
workstation SERVER
node
node
Recipes are created at the workstation
Chef architecture
workstation SERVER
node
node
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Recipes
Chef architecture
Collection of recipes forms a cookbook
workstation SERVER
node
node
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
The Cookbook is uploaded to the server using the knife
Chef architecture
workstation SERVER
node
nodeKnife
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
The Cookbook is uploaded to the server using the knife
Chef architecture
workstation
Knife
SERVER
node
node
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
$ knife upload simpli-db
Ohai, a component of the node checks the system’s
state and sends it to the chef client
Chef architecture
ohai
workstation
ohai
Knife
SERVER
node
node
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
$ knife upload simpli-db
Chef architecture
$ chef-client
The chef client ensures that the node’s state is
consistent with the cookbook
ohai
workstation
ohai
Knife
SERVER
node
node
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
$ knife upload simpli-db
Chef architecture
If not, the client pulls the cookbook from the server
ohai
workstation
ohai
Knife
SERVER
node
node
$ chef-client
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
$ knife upload simpli-db
Chef architecture
The node then configures itself with respect to the
cookbook to the right state
ohai
workstation
ohai
Knife
SERVER
node
node
$ chef-client
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
$ knife upload simpli-db
Chef architecture
The node then configures itself with respect to the
cookbook to the right state
ohai
workstation
ohai
Knife
SERVER
node
node
$ chef-client
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn2.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0655’
end
Template ā€˜etc/simplilearn’ do
source ā€˜simplilearn3.erb’
owner ā€˜root’
group ā€˜root’
mode ā€˜0755’
end
Recipes
$ knife upload simpli-db
Flavours of Chef
Chef solo has no remote server.The cookbooks are located at the local site itself
Chef server is provided as a service on the cloud.Thus, there is no need to setup a
server yourselfHosted chef
Flavours of Chef
workstation
server
Node
Chef solo
Chef client/server
This is the traditional chef architecture where a remote server is hosted that
communicates between workstation and node
Flavours of Chef
workstation server
workstation server node
node
private chef
This is the enterprise version of chef where the server is hosted within the
enterprise infrastructure
Chef demo
Chef demo
Workstation – CentOS 7 Server - Cloud Service Node - CentOS 7
Chef demo
Download and install Chefdk
on workstation
Make a cookbook and write
the recipe
Set up the server
Link the workstation and upload
the recipe to the server
Configure the node
Key Takeaways
Why use chef? What is chef?
Infrastructure as codeConfiguration management
Key Takeaways
Components of chef architecture of chef
Chef demoFlavours of chef
Chef Tutorial | Chef Tutorial For Beginners | DevOps Chef Tutorial | DevOps Tools | Simplilearn
Ad

Recommended

Introduction to Chef
Introduction to Chef
Knoldus Inc.
Ā 
Repository Management with JFrog Artifactory
Repository Management with JFrog Artifactory
Stephen Chin
Ā 
Infrastructure as Code with Terraform and Ansible
Infrastructure as Code with Terraform and Ansible
DevOps Meetup Bern
Ā 
Introduction to Vagrant
Introduction to Vagrant
Marcelo Pinheiro
Ā 
Yaml
Yaml
Sabarinath Gnanasekar
Ā 
Packer by HashiCorp
Packer by HashiCorp
Łukasz Cieśluk
Ā 
Reusable, composable, battle-tested Terraform modules
Reusable, composable, battle-tested Terraform modules
Yevgeniy Brikman
Ā 
AWS DevOps
AWS DevOps
hemagunty
Ā 
Chef for DevOps - an Introduction
Chef for DevOps - an Introduction
Sanjeev Sharma
Ā 
Maven
Maven
Harshit Choudhary
Ā 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
Simplilearn
Ā 
Docker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
Ā 
Devops online training ppt
Devops online training ppt
KhalidQureshi31
Ā 
Basic Jenkins Guide.pptx
Basic Jenkins Guide.pptx
Jayanga V. Liyanage
Ā 
Jenkins tutorial for beginners
Jenkins tutorial for beginners
BugRaptors
Ā 
Docker: From Zero to Hero
Docker: From Zero to Hero
fazalraja
Ā 
An introduction to DevOps
An introduction to DevOps
Alexander Meijers
Ā 
Getting Started with Azure Artifacts
Getting Started with Azure Artifacts
Callon Campbell
Ā 
Jenkins CI presentation
Jenkins CI presentation
Jonathan Holloway
Ā 
Git and git flow
Git and git flow
Fran GarcĆ­a
Ā 
DevOps with Ansible
DevOps with Ansible
Swapnil Jain
Ā 
Introduction to CICD
Introduction to CICD
Knoldus Inc.
Ā 
Ansible presentation
Ansible presentation
John Lynch
Ā 
Docker introduction
Docker introduction
Phuc Nguyen
Ā 
Dockers and containers basics
Dockers and containers basics
Sourabh Saxena
Ā 
Ansible presentation
Ansible presentation
Suresh Kumar
Ā 
Git101
Git101
Jason Noble
Ā 
Transforming Organizations with CI/CD
Transforming Organizations with CI/CD
Cprime
Ā 
OSDC 2013 | Introduction into Chef by Andy Hawkins
OSDC 2013 | Introduction into Chef by Andy Hawkins
NETWAYS
Ā 
Automating your infrastructure with Chef
Automating your infrastructure with Chef
John Ewart
Ā 

More Related Content

What's hot (20)

Chef for DevOps - an Introduction
Chef for DevOps - an Introduction
Sanjeev Sharma
Ā 
Maven
Maven
Harshit Choudhary
Ā 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
Simplilearn
Ā 
Docker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
Ā 
Devops online training ppt
Devops online training ppt
KhalidQureshi31
Ā 
Basic Jenkins Guide.pptx
Basic Jenkins Guide.pptx
Jayanga V. Liyanage
Ā 
Jenkins tutorial for beginners
Jenkins tutorial for beginners
BugRaptors
Ā 
Docker: From Zero to Hero
Docker: From Zero to Hero
fazalraja
Ā 
An introduction to DevOps
An introduction to DevOps
Alexander Meijers
Ā 
Getting Started with Azure Artifacts
Getting Started with Azure Artifacts
Callon Campbell
Ā 
Jenkins CI presentation
Jenkins CI presentation
Jonathan Holloway
Ā 
Git and git flow
Git and git flow
Fran GarcĆ­a
Ā 
DevOps with Ansible
DevOps with Ansible
Swapnil Jain
Ā 
Introduction to CICD
Introduction to CICD
Knoldus Inc.
Ā 
Ansible presentation
Ansible presentation
John Lynch
Ā 
Docker introduction
Docker introduction
Phuc Nguyen
Ā 
Dockers and containers basics
Dockers and containers basics
Sourabh Saxena
Ā 
Ansible presentation
Ansible presentation
Suresh Kumar
Ā 
Git101
Git101
Jason Noble
Ā 
Transforming Organizations with CI/CD
Transforming Organizations with CI/CD
Cprime
Ā 
Chef for DevOps - an Introduction
Chef for DevOps - an Introduction
Sanjeev Sharma
Ā 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
Simplilearn
Ā 
Docker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
Ā 
Devops online training ppt
Devops online training ppt
KhalidQureshi31
Ā 
Jenkins tutorial for beginners
Jenkins tutorial for beginners
BugRaptors
Ā 
Docker: From Zero to Hero
Docker: From Zero to Hero
fazalraja
Ā 
An introduction to DevOps
An introduction to DevOps
Alexander Meijers
Ā 
Getting Started with Azure Artifacts
Getting Started with Azure Artifacts
Callon Campbell
Ā 
Jenkins CI presentation
Jenkins CI presentation
Jonathan Holloway
Ā 
Git and git flow
Git and git flow
Fran GarcĆ­a
Ā 
DevOps with Ansible
DevOps with Ansible
Swapnil Jain
Ā 
Introduction to CICD
Introduction to CICD
Knoldus Inc.
Ā 
Ansible presentation
Ansible presentation
John Lynch
Ā 
Docker introduction
Docker introduction
Phuc Nguyen
Ā 
Dockers and containers basics
Dockers and containers basics
Sourabh Saxena
Ā 
Ansible presentation
Ansible presentation
Suresh Kumar
Ā 
Transforming Organizations with CI/CD
Transforming Organizations with CI/CD
Cprime
Ā 

Similar to Chef Tutorial | Chef Tutorial For Beginners | DevOps Chef Tutorial | DevOps Tools | Simplilearn (20)

OSDC 2013 | Introduction into Chef by Andy Hawkins
OSDC 2013 | Introduction into Chef by Andy Hawkins
NETWAYS
Ā 
Automating your infrastructure with Chef
Automating your infrastructure with Chef
John Ewart
Ā 
Chef
Chef
MohanRaviRohitth
Ā 
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Josh Padnick
Ā 
Chef fundamentals
Chef fundamentals
Ygor Nascimento
Ā 
Chef
Chef
Adrian Moisey
Ā 
Learning chef
Learning chef
Jonathan Carrillo
Ā 
What is Chef and how we use it at tripsta
What is Chef and how we use it at tripsta
Giedrius Rimkus
Ā 
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.
Ā 
Introduction to Chef
Introduction to Chef
Pubudu Suharshan Perera
Ā 
Chef for Openstack
Chef for Openstack
Mohit Sethi
Ā 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Software, Inc.
Ā 
Chef for openstack
Chef for openstack
openstackindia
Ā 
Introduction to Cooking with Chef
Introduction to Cooking with Chef
John Osborne
Ā 
Chef tutorial
Chef tutorial
HarikaReddy115
Ā 
Chef tutorial
Chef tutorial
HarikaReddy115
Ā 
Overview of Chef - Fundamentals Webinar Series Part 1
Overview of Chef - Fundamentals Webinar Series Part 1
Chef
Ā 
DevOps and Chef improve your life
DevOps and Chef improve your life
Juan Vicente Herrera Ruiz de Alejo
Ā 
Introduction to Chef - Techsuperwomen Summit
Introduction to Chef - Techsuperwomen Summit
Jennifer Davis
Ā 
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
PatrickCrompton
Ā 
OSDC 2013 | Introduction into Chef by Andy Hawkins
OSDC 2013 | Introduction into Chef by Andy Hawkins
NETWAYS
Ā 
Automating your infrastructure with Chef
Automating your infrastructure with Chef
John Ewart
Ā 
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Josh Padnick
Ā 
What is Chef and how we use it at tripsta
What is Chef and how we use it at tripsta
Giedrius Rimkus
Ā 
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.
Ā 
Chef for Openstack
Chef for Openstack
Mohit Sethi
Ā 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Software, Inc.
Ā 
Chef for openstack
Chef for openstack
openstackindia
Ā 
Introduction to Cooking with Chef
Introduction to Cooking with Chef
John Osborne
Ā 
Overview of Chef - Fundamentals Webinar Series Part 1
Overview of Chef - Fundamentals Webinar Series Part 1
Chef
Ā 
Introduction to Chef - Techsuperwomen Summit
Introduction to Chef - Techsuperwomen Summit
Jennifer Davis
Ā 
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
PatrickCrompton
Ā 
Ad

More from Simplilearn (20)

Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
Ā 
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
Ā 
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
Ā 
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
Ā 
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
Ā 
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
Ā 
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
Ā 
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
Ā 
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
Ā 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
Ā 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
Ā 
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
Ā 
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
Ā 
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
Ā 
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
Ā 
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
Ā 
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
Ā 
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
Ā 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
Ā 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
Ā 
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
Ā 
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
Ā 
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
Ā 
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
Ā 
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
Ā 
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
Ā 
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
Ā 
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
Ā 
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
Ā 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
Ā 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
Ā 
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
Ā 
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
Ā 
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
Ā 
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
Ā 
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
Ā 
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
Ā 
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
Ā 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
Ā 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
Ā 
Ad

Recently uploaded (20)

LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
Ā 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
Ā 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
Ā 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
Ā 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
Ā 
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
Ā 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
Ā 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
Ā 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
Ā 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
Ā 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
Ā 
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
Ā 
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
Ā 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
Ā 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
Ā 
June 2025 Progress Update With Board Call_In process.pptx
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
Ā 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
Ā 
Code Profiling in Odoo 18 - Odoo 18 Slides
Code Profiling in Odoo 18 - Odoo 18 Slides
Celine George
Ā 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
Ā 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
Ā 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
Ā 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
Ā 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
Ā 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
Ā 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
Ā 
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
Ā 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
Ā 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
Ā 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
Ā 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
Ā 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
Ā 
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
Ā 
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
Ā 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
Ā 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
Ā 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
Ā 
Code Profiling in Odoo 18 - Odoo 18 Slides
Code Profiling in Odoo 18 - Odoo 18 Slides
Celine George
Ā 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
Ā 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
Ā 

Chef Tutorial | Chef Tutorial For Beginners | DevOps Chef Tutorial | DevOps Tools | Simplilearn

  • 2. What’s in it for you? Chef demo Chef architecture Why use Chef? What is Chef? Configuration Management Components of Chef Infrastructure as Code Flavours of Chef
  • 4. Large companies have a constantly changing infrastructure that requires to be configured and maintained time to time Why use Chef?
  • 5. Large companies have a constantly changing infrastructure that requires to be configured and maintained time to time Why use Chef? New nodes may get added Existing systems may fail
  • 6. Large companies have a constantly changing infrastructure that requires to be configured and maintained time to time Why use Chef? New nodes may get added Existing systems may fail I can’t do it all by myself..
  • 7. Large companies have a constantly changing infrastructure that requires to be configured and maintained time to time Why use Chef? This is where Chef comes in and automates the entire process
  • 8. Continuous deployment: -Software is deployed continuously enabling a company to keep in pace with the market requirements Why use Chef? Chef provides:
  • 9. Continuous deployment: -Software is deployed continuously enabling a company to keep in pace with the market requirements Increase system robustness: -Infrastructure automation ensures all bugs are caught and removed before deploying the software Why use Chef? Chef provides:
  • 10. Continuous deployment: -Software is deployed continuously enabling a company to keep in pace with the market requirements Increase system robustness: -Infrastructure automation ensures all bugs are caught and removed before deploying the software Adapt to the Cloud: -Chef easily integrates with infrastructure on cloud Why use Chef? Chef provides:
  • 12. Chef is an open source tool developed by OpsCode What is Chef?
  • 13. Chef is an open source tool developed by OpsCode What is Chef? It is written in Ruby and Erlang
  • 14. Chef is an open source tool developed by OpsCode It is written in Ruby and Erlang It automates configuration and maintenance of multiple servers What is Chef?
  • 16. Configuration Management Configuration management is a collection of engineering practices that provides a systematic way to manage entities for efficient deployment.These entities include
  • 17. Code Infrastructure people Configuration Management Configuration management is a collection of engineering practices that provides a systematic way to manage entities for efficient deployment.These entities include
  • 18. Code Infrastructure people Configuration Management Code needs to be updated and stored Infrastructure needs to be configured People need coordination
  • 19. Configuration Management A configuration management tool automates these activities. There are two types of configuration management Server Server
  • 20. Configuration Management Chef follows pull configuration Server Server
  • 22. Infrastructure as code This isTim. He’s working at a large scale company as a system administrator
  • 23. Infrastructure as code I must set up a server and install 20 software applications over it
  • 24. Infrastructure as code I must set up a server and install 20 software applications over it Server is set up
  • 25. Infrastructure as code I must set up a server and install 20 software applications over it Server is set up It will take me all night to install all 20 software applications though
  • 26. Infrastructure as code Server is set up This wouldn’t be the case if i had a code for installing all the software rather than doing it manually I must set up a server and install 20 software applications over it It will take me all night to install all 20 software applications though
  • 27. Infrastructure as code modified tested deployed I could modify the code to meet the software installation requirements
  • 28. Infrastructure as code modified tested deployed Code could be tested to catch any bugs
  • 29. Infrastructure as code modified tested deployed Code can be easily deployed and all installations would take place automatically
  • 30. Infrastructure as code Policies and configurations Code written as This makes configuration management simpler and more efficient Infrastructure as code is a type of it infrastructure where the operations team manages the code rather than a manual procedure
  • 32. workstation The code for configuring and managing the infrastructure is created here Knife is a command line tool that uploads the cookbook to the server Components of Chef
  • 33. SERVER The server is where the Cookbooks are stored It provides tools required to drive the node configurations Server may be hosted local or remote The server is the middle man between workstation and the nodes Components of Chef
  • 34. node Ohai fetches the current state of the node it’s located in Chef client is responsible for the communication with the server Each node can have a different configuration requirement Nodes are the systems that require the configuration Components of Chef
  • 36. Recipes are created at the workstation Chef architecture Template ā€˜etc/simplilearn’ do source ā€˜simplilearn1.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes workstation SERVER node node
  • 37. Recipes are created at the workstation Chef architecture workstation SERVER node node Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Recipes
  • 38. Chef architecture Collection of recipes forms a cookbook workstation SERVER node node Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes
  • 39. The Cookbook is uploaded to the server using the knife Chef architecture workstation SERVER node nodeKnife Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes
  • 40. The Cookbook is uploaded to the server using the knife Chef architecture workstation Knife SERVER node node Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes $ knife upload simpli-db
  • 41. Ohai, a component of the node checks the system’s state and sends it to the chef client Chef architecture ohai workstation ohai Knife SERVER node node Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes $ knife upload simpli-db
  • 42. Chef architecture $ chef-client The chef client ensures that the node’s state is consistent with the cookbook ohai workstation ohai Knife SERVER node node Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes $ knife upload simpli-db
  • 43. Chef architecture If not, the client pulls the cookbook from the server ohai workstation ohai Knife SERVER node node $ chef-client Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes $ knife upload simpli-db
  • 44. Chef architecture The node then configures itself with respect to the cookbook to the right state ohai workstation ohai Knife SERVER node node $ chef-client Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes $ knife upload simpli-db
  • 45. Chef architecture The node then configures itself with respect to the cookbook to the right state ohai workstation ohai Knife SERVER node node $ chef-client Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn2.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0655’ end Template ā€˜etc/simplilearn’ do source ā€˜simplilearn3.erb’ owner ā€˜root’ group ā€˜root’ mode ā€˜0755’ end Recipes $ knife upload simpli-db
  • 47. Chef solo has no remote server.The cookbooks are located at the local site itself Chef server is provided as a service on the cloud.Thus, there is no need to setup a server yourselfHosted chef Flavours of Chef workstation server Node Chef solo
  • 48. Chef client/server This is the traditional chef architecture where a remote server is hosted that communicates between workstation and node Flavours of Chef workstation server workstation server node node private chef This is the enterprise version of chef where the server is hosted within the enterprise infrastructure
  • 50. Chef demo Workstation – CentOS 7 Server - Cloud Service Node - CentOS 7
  • 51. Chef demo Download and install Chefdk on workstation Make a cookbook and write the recipe Set up the server Link the workstation and upload the recipe to the server Configure the node
  • 52. Key Takeaways Why use chef? What is chef? Infrastructure as codeConfiguration management
  • 53. Key Takeaways Components of chef architecture of chef Chef demoFlavours of chef

Editor's Notes