Top Banner
From ConfigManagementSucks to I love ConfigManagement Kris Buytaert OSDC 2015 @krisbuytaert
42

OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Jul 15, 2015

Download

Technology

NETWAYS
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

From ConfigManagementSucks to I love ConfigManagement

Kris Buytaert OSDC 2015 @krisbuytaert

Page 2: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Kris Buytaert

●In the 90'ies I used to be a Dev , ●Then Became an Op ●Chief Trolling Officer and Open Source Consultant @inuits.eu ●Everything is an effing DNS Problem ●Building Clouds since before the bookstore ●Some books, some papers, some blogs ●Evangelizing devops

Page 3: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

#devops=~C(L)AMS ● Culture

● (Lean)

● Automation

• Packaging

• IAC

● Monitoring and Measurement

● Sharing

● Damon Edwards and John Willis

Gene Kim

Page 4: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

This talk

Part 3 of what should have been a 3 part series.

Part 4 is about Culture

Page 5: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Why we study history ? ● Because I`m a grumpy old frustrated sysadmin

● Because I`m an old opiniated guy

● Because history repeats

● We need to learn from our mistakes

Page 6: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Deploying an Infrastructure

● 1996 : Manual Installations , manually copying around config files and making changes

● 2001 : Mondo rescue (reproducable single instances)

● 2003 : SystemImager

• Reproducable Infrastructure , with “OVERRIDES”

• Fast Multicast Image deployments

• Image Sprawl (thank you VMware)

Page 7: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Deploying an Infrastructure

● 1996 : Manual Installations

● 2001 : Mondo rescue

● 2003 : SystemImager

● 2005 : Kickstart / FAI

• Dreaming of Jeos + IAC (Cfengine)

Page 8: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Deploying an Infrastructure

● 1996 : Manual Installations

● 2001 : Mondo rescue

● 2003 : SystemImager

● 2005 : Dreaming of Jeos + IAC

● 2008 : Actual JeOS + IAC

● 2010 : Vagrant for development

Page 9: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

For years we've tolerated humans to to make structural manual changes to the infrastructure our critical applications are running on.

Whilst at the same time demanding those critical applications to go trough rigid test scenarios.

Who let this happen ?

Page 10: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Infrastructure as Code ● Treat configuration automation as code

● Development best practices

• Model your infrastructure

• Version your cookbooks / manifests

• Test your cookbooks/ manifests

• Dev/ test /uat / prod for your infra

● Model your infrastructure

● A working service = automated ( Application Code + Infrastructure Code + Security + Monitoring )

● Think Puppet, Chef, Cfengine, ....

Page 11: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

The Learning Curves

Page 12: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove
Page 13: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove
Page 14: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove
Page 15: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

for $tool in “bcfg2 lcfg cfengine puppet chef “

$tool is user-friendly it's just picky about who its friends are.

Page 16: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

I hate your language

● Ruby vs no ruby

● I like python

Page 17: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Development is hard ● Ordering

● Loops

● Dependencies

Page 18: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove
Page 19: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Oldschool people reacting to change

Page 20: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Ops reaction : ● You want me to write code ?

● Yes shell , perl, python, ..

Page 21: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Ops Reaction: ● You want me to use git ?

● Yes it's 2015 .. use git or be looking for a new job.

Page 22: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

You'd think the previous conversation took place in in 2005.

Sadly it didn't , it still happening in 2015

Page 23: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Ops reaction : ● You want me write tests ?

● Yes .. as you are writing code

Page 24: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Ops reaction : ● You want me do to continous Integration ?

● Yes .. as you are developing software

Page 25: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Ops reaction : ● You want me do to continous deployment ?

● Yes .. as you need to experience how to do it so you can assist the developers with their own code base.

Page 26: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

A pipeline ● Checkout code

● Syntax

● Style

● Code Coverage

● Tests

● Build

● More Tests

● Package

● Upload to Repo

● Deploy on Test

● Check Puppetruns

● Check Icinga

● Promote to UAT

Page 27: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Share the pain , same tools .. you now know much better how to support the devs..

Page 28: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Great communities ?

Page 29: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

“There is a module ... for that”

● Which of the 60+ apache modules do you want ?

● But it doesn't work on your distro

● But it starts the service while you want your cluster soft to manage it.

● It doesn't use (the upstream) packages

● ...

Page 30: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

If you tought datacenter automation was easy ..

Page 31: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

devops : a movement tricking operations people into writing code to automate their infrastructure since 2007

Page 32: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

All I wanted was to put this one server, one application in production.

● We are talking datacenters .. it's never just one server , you need to have dev, test, acceptance, production platforms

● HA, Scaleout ?

Page 33: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

● Orchestration ? I need to have access to the database before I can launch the

appliction

● That's a design error

Page 34: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

NoOps anno 2010 ● I've build this app and put it in production on my favourite Saas,

● THEIR ops people will run it for me under strict limitations

Page 35: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Quiz : ● I've build this app and wrapped it in a

● I can run it everywere

● Who ?

Page 36: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Quiz : ● I've build this app and wrapped it in a

● I can run it everywere

● Sun Microsysystem Announcing Java in 1996

Page 37: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Quiz : ● I've build this app and wrapped it in a

● I can run it everywere

● Now I can choose what distro I want and put it in production

● Who ?

Page 38: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Quiz : ● I've build this app and wrapped it in a

● I can run it everywere

● Now I can choose what distro I want and put it in production

● A docker fanboy in front of a room of senior ops people in early 2014

Page 39: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

If all you know is docker, every whale looks like a private cloud

Image Build by devs, maintained by nobody

Page 40: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Closing the gaps between dev and ops

● How do you even build a container

● How do you build the hosts that run the containers ?

● Infrastructure as code ++

Page 41: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

I never hated Config Management in the first place .. it was love at first sight ..

Page 42: OSDC 2015: Kris Buytaert | From ConfigManagementSucks to ConfigManagementLove

Contact Kris Buytaert [email protected] Further Reading @krisbuytaert http://www.krisbuytaert.be/blog/ http://www.inuits.be/

Inuits Duboistraat 50 2060 Antwerpen Belgium 891.514.231 +32 475 961221