13
Infrastructure Engineering Bryan McLellan http:// loftninjas.org [email protected] Systems Administrator Widemile

Infrastructure Engineering

Embed Size (px)

DESCRIPTION

Automating your infrastructure using configuration management tools

Citation preview

Page 1: Infrastructure Engineering

Infrastructure Engineering

Bryan McLellanhttp:// loftninjas.org

[email protected]

Systems Administrator

Widemile

Page 2: Infrastructure Engineering

Landing Page Optimization (LPO) or

Proprietary Testing, Optimization and

Predictive Analytics Technology

(smart people)

Partner Program (Recently Launched) Full Service Clients

Page 3: Infrastructure Engineering

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

Page 4: Infrastructure Engineering

Chaining Tools & Frameworks

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

http://xkcd.com/444/

Page 5: Infrastructure Engineering

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

Page 6: Infrastructure Engineering

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

Page 7: Infrastructure Engineering

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

Page 8: Infrastructure Engineering

Life at Widemile

Tagging:

Page 9: Infrastructure Engineering

Life at Widemile

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

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

Page 10: Infrastructure Engineering

facter

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

Page 11: Infrastructure Engineering

puppet

Page 12: Infrastructure Engineering

munin

28 lines without comments, 241 lines without comments once deployed

Page 13: Infrastructure Engineering

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.)”