+ All Categories
Home > Technology > eSynergy Keiran Sweet - Bringing order to chaos with puppet

eSynergy Keiran Sweet - Bringing order to chaos with puppet

Date post: 11-Jan-2015
Category:
Upload: patrickcrompton
View: 551 times
Download: 1 times
Share this document with a friend
Description:
 
24
Keiran Sweet Bringing order to chaos with Puppet
Transcript
Page 1: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Keiran Sweet

Bringing order to chaos with Puppet

Page 2: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Bringing order to Chaos with PuppetKeiran Sweet

Page 3: eSynergy Keiran Sweet - Bringing order to chaos with puppet

About me

• UNIX Administrator in the Financial sector

• ~10 years UNIX experience across a number of industries

• Using Puppet for 3+ years

• Devops advocate

• Likes automating things

• Likes keeping things simple

Page 4: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Obligatory..

disclaimer { keiran:

opinions => mine,

representing => myself,

}

Page 5: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Puppet ?

• What is it ?

• What can it do ?

• Who uses it ?

• What is it's role in Devops ?

• Similar to ?What is i

Page 6: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Example DSL #1

# Managing a User account

user { 'Keiran.Sweet':

ensure => 'present',

comment => 'Keiran Sweet',

gid => '10042',

groups => ['wheel'],

home => '/home/Keiran.Sweet',

shell => '/bin/bash',

uid => '10042',

}

Page 7: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Example DSL #2

# Deploying and managing a file

file { '/etc/security/limits.conf':

ensure => 'file',

source => 'puppet:///modules/ostune/limits.conf',

owner => 'root',

group => 'root',

mode => '644',

}

Page 8: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case study

Page 9: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - Original Environment

• OS - Enterprise Linuxo RHEL 4 & 5o CentOS 4 & 5o RHEL 6 was on the way

• "Management" toolso Satellite Server - RHEL Managemento Spacewalk Server - CentOS Managemento Glued together with Cobbler, DHCP, TFTP & PXEo Numerous "rogue" servers o External 3rd Party repositorieso Lots of hand crafted servers

Page 10: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - Original Environment

• Provisioningo Kickstart via Satellite & Spacewalk

Basic installs of the OS only Servers were built as localhost.localdomain Configuration done by hand post kickstart Packages weren't being utilised (tar, zips, scripts) VMTools, HP PSP's, HW Agents - Often missing

o DVD/CD Installs still being done Left disconnected from Satellite / Spacewalk Non-standard configurations Some talked to unknown repos on the internet (!)

Page 11: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Arriving in the office each morning...

Page 12: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Linux TeamReaction

Page 13: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - Original Environment

• Result - Utter carnageo Business was suffering

Application & Server instability == Outages Delays in deployment of new platforms Delays in upgrading and deploying our applications

o The Linux admins were suffering Flying blind - Unknown fleet composition Every issue resulted in a journey of discovery Inconsistent configurations made delivering other

infrastructure projects difficult - ie, Monitoring Wasn't enjoyable (not enough time for reddit)

Page 14: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Ain't nobody got time fo dat

Page 15: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - What did we need ?

• Configuration Managemento Self healingo Rich Reportingo Vendor neutralo Flexible o Version controlo Integrates with provisioning workflow

• Software Management and Distributiono Centralised, Simple & Scalable o Secure (Signed Packages & TLS)o Redundancy - Supported mirrors/slaves

Page 16: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - What we chose

• Puppeto Configuration Managemento Self healingo Rich reportingo Cross platformo Extensible

• Foremano Puppet node classifier (ENC)o DHCP/TFTP/PXE Integrationo Puppet report visualisationo Host inventory & CMDB

Page 17: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - How it was assembled

Page 18: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - Fixing Provisioning

HostnameOS VersionMAC AddressPartition TableData Center

Page 19: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - Importing the fleet

• Install Puppet agent

• Boot strap the client

• Apply the standard modules

• Test

Result:

Page 20: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - End result - Stability

• Costs are down

• Business applications are more stable

• React to requests more rapidly

• Users have a common experience

• Fleet management is much easier

Page 21: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Questions ?

• Contacto Twitter: @keiran_so Email: [email protected]

• Imageso Devops Reactionso Reddit

Page 22: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - End result - Dashboard

Page 23: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - End result - Reports

Page 24: eSynergy Keiran Sweet - Bringing order to chaos with puppet

Case Study - End result - Node data


Recommended