Anúncio

Infrastructure as Code

Global Architect em EMC Corporation
17 de Jul de 2015
Anúncio

Mais conteúdo relacionado

Apresentações para você(20)

Similar a Infrastructure as Code(20)

Anúncio

Infrastructure as Code

  1. Infrastructure As Code 2015 Q2 EMC Accreditation Jonas Rosland & Matt Cowger
  2. What do we define as infrastructure?
  3. Why define infrastructure as code? • Deploy, monitor and connect together all the pieces needed to run services for the organization • Processes and tools for faster end-to-end delivery of quality services • Automation comes built-in
  4. How do we do this? • Desired state specified in text files • Autonomic (self-corrects to desired state) • State should be known through monitoring • Remove snowflake servers
  5. Why store them in text files? • Easy to read and edit • Shareable • Can use standard version control like Git or SVN • Becomes executable documentation
  6. Simple example node 'www2' { class { 'apache': } # use apache module apache::vhost { 'awesomewebsite.com': # define vhost resource port => '80', docroot => '/var/www/html' } }
  7. Change root password user { root: ensure => present, password => '$ecretP@ssw0rd', }
  8. Manually configured environments are like a house of cards in a china shop — Neal Ford
  9. Snowflake servers Deploying, provisioning and scaling automatically is virtually impossible if every server is unique Adds friction between the requestor and the deployer Mistakes happen We're all human
  10. What can happen if you don't treat infrastructure as code?
  11. Some firms have found that up to 60% of failures are caused by human error, not hardware failure
  12. Example - Knight Capital Group
  13. Knight Capital Group - What happened? Manual deployment of new trading software 7 of 8 servers correctly updated Old function still alive on the 8th server led to $440 million loss in 45 minutes
  14. Treat your infrastructure as code
  15. Benefits Self documenting infrastructure You now have source code for how anything in your datacenter is setup Executable documentation
  16. Further reading: PuppetLabs Vagrant Docker Infrastructure as Code: A reason to smile
Anúncio