Decoding Puppet & Jenkins via DevOps

Preview:

Citation preview

Slide ‹#›© 2015 BlueCamphor Technologies (P) Ltd. www.skillspeed.com

Decoding Puppet andJenkins via DevOps

© 2015 BlueCamphor Technologies (P) Ltd.

Session Objectives

www.skillspeed.com

This session will help you to:

ᗍ Understand DevOpsᗍ Introduction to Puppet - Puppet Architecture

Introduction to Jenkins - Jenkins Workflowᗍ

ᗍ Applications of DevOps in Business & Performance Automation Continuous Release Environmentᗍ

© 2015 BlueCamphor Technologies (P) Ltd.

Configuration Management – Use Case

www.skillspeed.com

Problem Statement:

ᗍ In a large organization with thousands of servers, how will you deploy packages to all the servers or manage configuration across all the nodes?

ᗍ A user makes some changes in files, how will you track what has been changed, which broke the service

ᗍ How to maintain consistency across all nodes?

© 2015 BlueCamphor Technologies (P) Ltd.

Solution

www.skillspeed.com

Puppet (Deployed for large Enterprises) is one of the DevOps tools which helps to manage configuration

© 2015 BlueCamphor Technologies (P) Ltd.

What is DevOps?

A drive to encourage a different, positive and innovative way of thinking to address a common set of issues affecting the experience of living in, working with and using IT in the world we live in today.

www.skillspeed.com

© 2015 BlueCamphor Technologies (P) Ltd.

DevOps As A Bridge

DevOps is the bridge between the development and operations excellence

It is an extension of the lean and Agile principles, which streamlines and helps rapid deployments

Development

Operations

www.skillspeed.com

DevOps

"DevOps" is meant to denote a close collaboration and cross-pollination between what were previously purely development roles, purely operations roles and purely QA roles

Application

Platform

Operating System

Infrastructure

© 2015 BlueCamphor Technologies (P) Ltd.

DevOps Optimization Cycle

DevOps

www.skillspeed.com

Faster Time to Market

Increased ROI

Stable System

Continuous Delivery

Reduced Complexity

© 2015 BlueCamphor Technologies (P) Ltd.

Introduction to Puppet

www.skillspeed.com

ᗍ Puppet allows the sysadmin to administrate infrastructure through code

ᗍ Puppet is an open source configuration management tool developed by Puppet Labs

© 2015 BlueCamphor Technologies (P) Ltd.

Puppet Architecture

Puppet is based on Client-Server model with a centralized server and agents running on each node as clients

Client

puppetd

Client

puppetd

Client

puppetd

Puppet Master

Network

www.skillspeed.com

Slide 10

© 2015 BlueCamphor Technologies (P) Ltd.

Puppet Installation

www.skillspeed.com

ᗍ Enable repository, so as to install packages• rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noa

rch.rpm

Puppet, System performance and Security aspects

ᗍ Install Puppet• # yum install puppet-server

ᗍ Upgrade to the latest release• # puppet resource package puppet-server ensure=latest

ᗍ Start the master server• # /etc/init.d/puppetmaster restart

© 2015 BlueCamphor Technologies (P) Ltd.

What is Jenkins?

Jenkins is an continuous integration (CI) server, which is used widely for automation of build and deployments

Builds can be started by:ᗍ Commit in a version control systemᗍ Scheduling via a cron-like mechanismᗍ Building when other builds have completed or by requesting a specific build URL

Deploy Manag

e

AssembleModel

www.skillspeed.com

© 2015 BlueCamphor Technologies (P) Ltd.

Jenkins Work Flow

Build, test and integrate as quickly as possible

Develop

www.skillspeed.com

Test

Design

Deploy

© 2015 BlueCamphor Technologies (P) Ltd.

Jenkins Installation

www.skillspeed.com

ᗍ Download

• wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

• rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

ᗍ Install Jenkins• $ yum install Jenkins

ᗍ Add Jenkins to system boot• $ chkconfig jenkins on

ᗍ Start Jenkins• $ service jenkins start

© 2015 BlueCamphor Technologies (P) Ltd.

Big Deal about DevOps

www.skillspeed.com

The biggest business benefit of switching to DevOps is the increase in customer satisfaction

© 2015 BlueCamphor Technologies (P) Ltd.

Benefits of DevOps for IT and Business

Companies that incorporate DevOps practices get more done, plain and simple

ᗍ Technical benefits:• Continuous software delivery• Less complex problems to fix• Faster resolution of problems• Reduced Deployment Failures and Rollbacks• Reduced Time to recover upon Failure• Increased Effectiveness

ᗍ Business benefits:• Faster delivery of features• More stable operating environments• More time available to add value (rather than fix/maintain)

www.skillspeed.com

© 2015 BlueCamphor Technologies (P) Ltd.

Why SkillSpeed?

Course Curriculum

from Industry Experts

Instructor Led Live Virtual Sessions

Lifetime access to Course Content via

LMS

100% PlacementAssistance

24x7 Support

www.skillspeed.com