Infrastructure Engineering

Preview:

DESCRIPTION

Automating your infrastructure using configuration management tools

Citation preview

Infrastructure Engineering

Bryan McLellanhttp:// loftninjas.org

btm@loftninjas.org

Systems Administrator

Widemile

Landing Page Optimization (LPO) or

Proprietary Testing, Optimization and

Predictive Analytics Technology

(smart people)

Partner Program (Recently Launched) Full Service Clients

The secret goal of an SANever having to say you’re sorry…

Or never having to do something twice

Once is a problem worth solving

Twice and you’re a monkey

http://www.flickr.com/photos/junewess/2111679056/

Twice and you’re a monkey

Objective:

Systems/Network engineering position that will

capitalize on my adaptive technical skills to provide

scalable solutions to unique problems

Chaining Tools & Frameworks

Puppet, Facter, Capistrano & iClassify(Open Source Software)

http://xkcd.com/444/

Automation

• Building Systems

• Installing the OS

• Installing software

• Configuring Software

• Maintenance

Virtualization

PXE Boot

Package management

Puppet

iClassify• Maintenance

• Monitoring

• Documentation

• Disaster Recovery

iClassify

Capistrano

Nagios/Munin

Life at Widemile

Build a new servercap -S recipe=vmware \

-S host=vmware06 \

-S hostname="syslog01.prod.widemile.com" \

-S network=prod \

buildbuild

1. Capistrano recipe (ruby)

2. Builds a vmware vmx config file including virtual network interfaces (erb)

3. Creates virtual disk

4. Grabs generated MAC address, feeds it to the tftp server.

5. Starts VM

6. VM PXE boots, installs debian automatically (preseed)

7. Grabs IP address from DHCP logs so you know where to ssh in 10 minutes

Life at Widemile

Puppifycap -S recipe=debian_client \

-S client=syslog01 \

-S master=prod-ops01 \

build

1. Capistrano recipe (ruby)

2. Configures sources.list and bits needed to get the truck rolling

3. Installs puppet/facter/icagent (iClassify)

4. Generates and signs puppet keys

5. Runs puppet

Life at Widemile

Tagging:

Life at Widemile

Go for a bike ride and enjoy refreshing beverages in the park

http://www.flickr.com/photos/mattw/2655550820/

facter

Rubys scripts collect data, “facts” are available as iClassify attributes and puppet variables

puppet

munin

28 lines without comments, 241 lines without comments once deployed

http://loftninjas.org

http://stochasticresonance.wordpress.com

“Parallel to the ‘Developer’ tribe in most organizations, often with a semi-antagonistic

mutual dependence, there was always another tribe: ‘Sysadmin’. When Developers

and Sysadmins got together, it sometimes felt like the dwarfs and high elves forced to

work together by necessity. (I’ll let you workout which is which.)”

Recommended