Infrastructure as Code

74914ee9a20cae13765dce54917f2bb2?s=47 Axel Quack
December 07, 2011

Infrastructure as Code

74914ee9a20cae13765dce54917f2bb2?s=128

Axel Quack

December 07, 2011
Tweet

Transcript

  1. Infrastructure as code Pixelpark Innovation Lab Cologne, 8 November 2011

  2. 1 Introduction 2 Just enough… OS 3 Just enough… image

    building 4 Just enough… infrastructure code 5 Summary
  3. | Agenda 1. Introduction 3 © p i x e

    l p a r k
  4. | | 4 © p i x e l p

    a r k
  5. | | 5 Cloud Stack © p i x e

    l p a r k Flexibilitx of Purpose Level of Abstraction Control / Governance SaaS Software as a Service Public Hybrid Private PaaS Platform as a Service IaaS Infrastructure as a Service §  e.g. Salesforce etc. §  e.g. Google App Engine, §  Windows Azure, Heroku §  e.g. Amazon EC2, §  Rackspace etc.
  6. | | Middleware to scale Golden Image Snapshot Snapshot Raw

    image e.g. Debian Basic Installation § Network § Config § Partitions § … Software Stack Software Configuration Application Configuration ISO Chef Cookbook Autoconfig (Saved once) 6 © p i x e l p a r k TIME
  7. | Agenda 2. Just enough… OS 7 © p i

    x e l p a r k
  8. | | 8 Deployment models © p i x e

    l p a r k Public Cloud Private Cloud “Cloud in your Pocket“ Hybrid Cloud §  Eucalyptus §  OpenStack §  Crowbar §  OpenNebula §  … §  Amazon Web Services §  Rackspace §  Google App Engine §  vCloud §  … Eucalyptus, Deltacloud
  9. | | 9 © p i x e l p

    a r k „A cloud in your Pocket“
  10. | | 10 © p i x e l p

    a r k
  11. | | 11 Vagrant © p i x e l

    p a r k Git (e.g. for storing dotfiles) Vagrant file Virtual Box DB App 2 App 1 LB Boxes …
  12. | | 12 © p i x e l p

    a r k You want to get more boxes? Try Vagrantbox.es.
  13. | | 13 © p i x e l p

    a r k But… Paranoid? Do you trust these boxes?
  14. | Agenda 3. Just enough… image building 14 © p

    i x e l p a r k
  15. | | 15 VeeWee © p i x e l

    p a r k VeeWee Box n Box 2 Box 1 JeOS Predefined lists Vagrant file (Hosting e.g. S3, Dropbox, Local) Kickstart definition.rb (Red Hat) preseed.cfg [ alt. e.g. FAI ] (Debian GNU Linux / Ubuntu) AutoYaST (openSUSE) Git postinstall.sh
  16. | | 16 © p i x e l p

    a r k What about Public Clouds?
  17. | | 17 Mccloud © p i x e l

    p a r k Git (Dotfiles) Mccloudfile Fog (similar to boto) EC2 LB App 2 App 1 … AMIs Porting Boxes to AMIs soon
  18. | | 18 © p i x e l p

    a r k What about Private Clouds?
  19. | | 19 Crowbar © p i x e l

    p a r k Bare Iron Network Discovery BIOS/RAID config OS install Chef Client install OpenStack config Ready for service Server Crowbar Chef Server Wget PXE Wget PXE Wget Data Store WGE Chef Comms Chef takes over control PXE, DHCP, DNS Source: Rob Hirschfeld
  20. | Agenda 4. Just enough… infrastructure code 20 © p

    i x e l p a r k
  21. | | 21 © p i x e l p

    a r k
  22. | | 22 Chef Solo © p i x e

    l p a r k Reconfigure Chef Solo Cookbooks JSON Push Configuration Source: peritor
  23. | | 23 Chef Server © p i x e

    l p a r k Reconfigure Chef Client Cookbooks Chef Server Cookbooks JSON Pull Configuration & Cookbooks Source: peritor
  24. | | 24 Scenarios © p i x e l

    p a r k Chef Server or Puppet Server Chef Server EC2 VirtualBox Crowbar AMI Boxes
  25. | Agenda 5. Summary 25 © p i x e

    l p a r k
  26. | Cloud Abstraction Library Private Cloud Abstraction Library Public Cloud

    Private Cloud Xen KVM lxc vSphere „Cloud in your Pocket“ Mccloud Crowbar Vagrant AWS Rackspace vCloud VMware Player VMware fusion VirtualBox Fog (Ruby) Boto (Python) jclouds (Java) libvirt APIs CLIs APIs CLIs Just enough… Operating System Just enough… infrastructure code Just enough… coordination Just enough… image building VeeWee Rundeck Pie Deployinator Cfengine Puppet Chef Source: Patrick Debois
  27. | DevOps.

  28. | Dev to all Ops Ops is a Black Box

    Ops Dev
  29. We‘re looking forward to receiving your feedback.

  30. | | The ideas and proposals included in this presentation

    are the intellectual property of Pixelpark and subject to current copyright laws. The total or partial reproduction, and any disclosure to third parties is permitted. Axel Quack Director Innovation Management Pixelpark AG Cäcilienkloster 2 50676 Köln Tel: +49.221.951515-994 Fax: +49.221.951515-66 axel.quack@pixelpark.com www.pixelpark.com 30 Imprint © p i x e l p a r k