building self-service on demand infrastructure with puppet and vmware

22
Building self-service infrastructure with Puppet and VMware An intro to vSphere automation

Upload: puppet-labs

Post on 12-May-2015

2.821 views

Category:

Technology


1 download

DESCRIPTION

"Building self-service infrastructure with Puppet and VMware: An intro to vSphere automation" by Cody Herriges of Puppet Labs at Puppet Camp London 2013. Find a Puppet Camp near you: https://puppetlabs.com/community/puppet-camp/

TRANSCRIPT

Page 1: Building self-service on demand infrastructure with Puppet and VMware

Building self-service infrastructure with Puppet and

VMware

An intro to vSphere automation

Page 2: Building self-service on demand infrastructure with Puppet and VMware

2 | CONFIDENTIAL & PROPRIETARY

Really about…

•  A little about Operations at Puppet Labs.

•  Why we choose on premise virtualization over giving everyone EC2/Rackspace credentials.

•  How we’re tackling the ramifications of that ^ decision.

Page 3: Building self-service on demand infrastructure with Puppet and VMware

Building self-service infrastructure with Puppet and

VMware

An intro to vSphere automation

Page 4: Building self-service on demand infrastructure with Puppet and VMware

4 | CONFIDENTIAL & PROPRIETARY

Who am I?

•  Cody Herriges

•  Operations Engineer

•  Joined Puppet Labs in 2010

•  Been using Puppet for 5.5 years

•  Currently responsible for internal Virtualization and Storage architectures.

Page 5: Building self-service on demand infrastructure with Puppet and VMware

5 | CONFIDENTIAL & PROPRIETARY

Puppet Labs Operations

•  Three senior infrastructure engineers.

•  Two desktop support engineers.

•  Two Jr-ish infrastructure engineers.

•  Both start while I am here in Europe.

Page 6: Building self-service on demand infrastructure with Puppet and VMware

6 | CONFIDENTIAL & PROPRIETARY

Our current strategy

•  In the cloud?

•  Our production web applications; forge, redmine, ask, puppetlabs.com.

•  All other production?

•  On premise data center.

Page 7: Building self-service on demand infrastructure with Puppet and VMware

7 | CONFIDENTIAL & PROPRIETARY

Defining focus

•  We were always chasing things that were “broken”.

•  We weren’t making any personal growth.

•  No time to innovate.

•  Infrastructure design and implementation never matured.

Page 8: Building self-service on demand infrastructure with Puppet and VMware

8 | CONFIDENTIAL & PROPRIETARY

VMware

•  Our implementation was holding us back.

•  Rebuilt everything.

•  Networking infrastructure provided by 1GbE Cisco and 10GbE Juniper.

•  Storage over iSCSI, backed by EMC VNX and Nexenta.

Page 9: Building self-service on demand infrastructure with Puppet and VMware

9 | CONFIDENTIAL & PROPRIETARY

IaaS

•  Pros

•  Operational over a capital investment.

•  You get off the ground fast.

•  Don’t have to worry about power, rack space, cooling, cable management, networking.

•  On demand unlimited resources at your finger tips.

Page 10: Building self-service on demand infrastructure with Puppet and VMware

10 | CONFIDENTIAL & PROPRIETARY

IaaS

•  Cons

•  Performance is expensive.

•  Scale is expensive.

•  Redundancy can increase cost and/or application complexity.

•  You lose most of your control over networking.

Page 11: Building self-service on demand infrastructure with Puppet and VMware

11 | CONFIDENTIAL & PROPRIETARY

Internal Infrastructure

•  Pros

•  Performance and scale per dollar is much less.

•  Redundancy is loads simpler when you control layer 2.

•  Infrastructure can fit into the way you work and develop.

•  During an outage there is always something you can do about it.

Page 12: Building self-service on demand infrastructure with Puppet and VMware

12 | CONFIDENTIAL & PROPRIETARY

Internal Infrastructure

•  Cons

•  You have to buy things.

•  There is a datacenter to manage.

•  Initial roll out will take time.

Page 13: Building self-service on demand infrastructure with Puppet and VMware

13 | CONFIDENTIAL & PROPRIETARY

Internal Infrastructure

•  Other considerations

•  If you have a physical office you’ll will have some amount of internal infrastructure.

•  There will always be a point where you out grow that converted coat closet.

•  The product you develop may require it.

Page 14: Building self-service on demand infrastructure with Puppet and VMware

14 | CONFIDENTIAL & PROPRIETARY

Loading ESXi

•  vSphere hypervisor (ESXi) uses kickstart.

•  Razor, capable of loading ESXi to non-volatile storage.

•  vCenter’s built in gPXE system, vSphere Auto Deploy.

•  We’ve used both.

Page 15: Building self-service on demand infrastructure with Puppet and VMware

15 | CONFIDENTIAL & PROPRIETARY

vCenter Automation

•  Self-contained environments

•  Easy permission management

•  Modules

•  http://forge.puppetlabs.com/vmware/vmware_lib

•  http://forge.puppetlabs.com/vmware/vcenter

•  https://github.com/ody/vmware-vcenter/tree/at_puppetlabs

Page 16: Building self-service on demand infrastructure with Puppet and VMware

16 | CONFIDENTIAL & PROPRIETARY

DISCLAIMER

I had to fork these modules…they’ll get merged in soon…

Page 17: Building self-service on demand infrastructure with Puppet and VMware

17 | CONFIDENTIAL & PROPRIETARY

vCenter Automation

•  The “transport” resource

Page 18: Building self-service on demand infrastructure with Puppet and VMware

18 | CONFIDENTIAL & PROPRIETARY

vCenter Automation

•  Creating folders with “vc_folder”

Page 19: Building self-service on demand infrastructure with Puppet and VMware

19 | CONFIDENTIAL & PROPRIETARY

vCenter Automation

•  Creating vDS port groups with “vc_vdsportgroup”

Page 20: Building self-service on demand infrastructure with Puppet and VMware

20 | CONFIDENTIAL & PROPRIETARY

vCenter Automation

•  Setting permissions with “vc_permission”

Page 21: Building self-service on demand infrastructure with Puppet and VMware

21 | CONFIDENTIAL & PROPRIETARY

More from Puppet Labs Operations

•  http://forge.puppetlabs.com/ploperations

•  https://github.com/puppetlabs-operations

•  http://puppetlabs.com/blog

Page 22: Building self-service on demand infrastructure with Puppet and VMware

22 | CONFIDENTIAL & PROPRIETARY

Questions?

About anything really!