Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mini training - Infrastructure as Code

Mini training - Infrastructure as Code

Mickael Metesreau

November 14, 2014
Tweet

More Decks by Mickael Metesreau

Other Decks in Technology

Transcript

  1. And IAC??? View infrastructure like an artifact Artifact are produced

    from code A try to apply software techniques (versionning, testing, automation...) to infrastructure requests
  2. But... We are using VM images. How are you building

    VM images? We have a lot of world documentation. How do you maintain and version documentation? We have some custom scripts. Can you easily and quickly handle change?
  3. Step one : Configuration management Process of standardizing resource configurations

    and enforcing their state across IT infrastructure in an automated yet agile manner
  4. Why use it? • Bring abstraction layer • Declarative code

    is also kind of documentation • Easy to rollback, release, and track in CVS • Provide repeatability and idempotence • Scale easyly
  5. Step three : Provisionning Set of actions to make a

    infrastructure resource available and make it ready for network operation.
  6. Step four: Test, test and test Ensure that infrastructure meets

    the requirements and performs its functions.
  7. ServerSpec Based on RSpec, ServerSpec tests for your servers configured

    by CFEngine, Puppet, Ansible or anything else.
  8. Test with RSpec describe 'apache' do describe 'Installation' do it

    { should contain_package('apache') .with_ensure('present') } end end
  9. Step five: Improve your dev with Vagrant • Provide easy

    to configure, reproductible and portable development environments • Provider on top of VirtualBox, Vmware, Custom provider • Provision on top of Shell, Puppet, Chef
  10. What's next? • Datacenter like a single pool of resources

    • Infrastructure pipeline • Immutable servers • Continuous integration to continuous deployment