www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Do you know the following?
Why Configuration
Management?
What is Configuration
Management?
Hands-On
Puppet Architecture
2
Puppet Components
Configuration
Management tools
3
45
6
1
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Why We Need
Configuration Management?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Problems Before Configuration Management
Configuring large infrastructure was a very hectic job
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Problems Before Configuration Management
Rollback to the previous stable version of the software was very difficult
Older version of the
Software stack
Updated version of
the Software
There are certain glitches with the
updated version of the Software
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Problems Before Configuration Management
An application works in developer’s laptop but not in testing or production. In Dev there can be a software that is
upgraded and in Prod the old version of software might be present.
Code works
fine in my
laptop
There is some
problem with
the code
Dev Prod
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Let us understand the Importance of
Configuration Management with a Use-Case
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management At NYSE
As a result of a proper Configuration Management process, NYSE recovered from that situation in 90 minutes which
was pretty fast. Had the problem continued longer, the consequences would have been more severe.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Now, is the correct time to understand
What Is Configuration Management
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
What Is Configuration Management?
Configuration Management is the practice of handling changes systematically so that a system maintains its
integrity over time. It allows access to an accurate historical record of system state.
DEV
TEST
PROD
Provisioning of Dev, Test and Prod
environment by writing code in one
centralized location
Code for the
infrastructure
Infrastructure as code (IAC)
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Components
There are two types of Configuration Management approaches: Push and Pull approach
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Tools
Pull Configuration Push Configuration
Push Configuration Pull Configuration
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
What Is Puppet?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
What Is Puppet?
Puppet Master
Puppet Agent Puppet Agent Puppet Agent
Configurations are pulled from the Master by the Nodes
Master contains all the configurations
Puppet is a Configuration Management tool that is used for
 deploying,
 configuring and
 managing servers.
It uses a Master-Slave architecture.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Master-Slave Architecture
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Master-Slave Architecture
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Master-Slave Connection
SSL (Secure Sockets layer) connection between Master and Slave
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Use-Case
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Use-Case (Deploy MySQL And PHP)
Puppet Agent
Puppet MasterPuppet Agent
Puppet Agent
Code for
PHP and
MySQL
Poll the Master for changes and then
pull the configurations
 Using predefined Modules, I will download the Modules for PHP and MySQL, this will define the two classes
namely: PHP and MySQL.
 I will then declare these two classes in the Puppet Manifests.
 Finally the Puppet Agents will pull those configurations and PHP and MySQL will be installed in the Agents.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Use-Case Phases
Classes and
Resources
Manifests Modules
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Code Basics
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Resources, Classes, Manifests and Modules
Resource Resource Resource
Class Manifest
Manifest
Manifest
Module
Manifests can be deployed but it is a good practice to bundle all the Manifests in the form of a Module
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Resources And Classes
Resources are the fundamental unit for modeling
system configurations. Each Resource describes some
aspect of a system, like a specific service or package.
Syntax:
For example:
Groups of resources can be organized into classes, which
are larger units of configuration. While a resource may
describe a single file or package, a class may describe
everything needed to configure an entire service or
application
Syntax:
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Manifests
Puppet programs are called manifests. Manifests are composed of puppet code and their filenames use the .pp extension
For example:Syntax:
 include [Class_Name]
 class { ‘Class_Name: }
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Puppet Modules
A module is a collection of manifests and data (such as facts, files, and templates), and they have a specific directory
structure. Modules are useful for organizing your Puppet code, because they allow you to split your code into multiple
manifests.
To add a module to Puppet, place it in the /etc/puppet/modules directory
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Summary
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Session In A Minute
Why Configuration Management Configuration Management
What is Puppet Puppet Code-Basics
Configuration Management tools
Hands-On
Resource Resource Resource
Class Manifest
Manifest
Manifest
Module
PHP and MySQL
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Thank You …
Questions/Queries/Feedback

What is Puppet | Puppet Tutorial for Beginners | Puppet Configuration Management Tutorial | Edureka