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

Vagrant Up: your environment

Vagrant Up: your environment

It’s Friday 3pm. Your boss comes to you and asks you to set up a development environment for the new employee that arrives on Monday.

On another day, you have a sudden traffic spike and need to add a new server. Now you have to carefully follow a procedure without forgetting a step.

Sounds familiar?

In this presentation, Yann Larrivée will show you how Vagrant and Puppet can dramatically reduce the time needed to accomplish these tasks ans reduce the number of mistakes.

Yann Larrivée

June 22, 2015
Tweet

More Decks by Yann Larrivée

Other Decks in Technology

Transcript

  1. 2 Yann Larrivée • Consultant at FooLab • Project rescue

    • I organize ConFoo.ca • Twitter: @ylarrivee • Email : [email protected]
  2. 3 Presentation Objectives  Increase software quality  Lower the

    time needed for quality assurance  Reduce the time needed to configure servers  Spend more time doing solving real problems
  3. 4 You will learn how to: Vagrant  Manage a

    servers  Provision them with VirtualBox or DigitalOcean Puppet  Install / configure packages  Use configuration templates  Create reusable scripts  ..
  4. 6 Why use Vagrant & Puppet: Scenario #1  Windows/Linux/Mac

     Different software version: PHP 5.5, 5.6, ..  Different software installed  Code breaks in production because of the later
  5. 7 Why use Vagrant & Puppet: Scenario #2  New

    employee  No time to setup the machine
  6. 8 Why use Vagrant & Puppet: Scenario #3  You

    want to create a standard environment  You need to create configured vm in seconds
  7. 10 Vagrant: Where to get a box?  https://atlas.hashicorp.com 

    https://cloud-images.ubuntu.com/vagrant  http://www.vagrantbox.es
  8. 11 Vagrant: Commands  vagrant init {box_name} {box_url}  Vagrant

    up  Vagrant halt/suspend/resume/reload  Vagrant ssh  Vagrant provision  Vagrant destroy  Vagrant package
  9. 12 Creating the box Naming things is hard! Foo, Bar,

    Baz Qux, Quux, Corge, Grault, Garply, ...
  10. 16 Vagrant: Customizing your VM  Machine name  RAM

     CPU  Shared Folders  Network  Configuration manager (Puppet)  The Hypervisor (VirtualBox, VMware, DigitalOcean, AWS)
  11. 26 Current Limitation  Everything is hardcoded  Specific to

    an OS  Can't customize any package configuration  Only configure one servers
  12. 42 Presentation: Take away  Don't automate things while learning

     Start small  Iterate  Automate once, configure always
  13. 43 Presentation: Take away  We automate to go faster

     Have a lab  Test your scripts  Be carefull, don't trust every box/scripts on the internet
  14. 44 Questions: Twitter: @ylarrivee Email : [email protected] Website: foolab.ca Slides:

    http://bit.ly/1Git5JI I help businesses maximize their investment and ship projects ahead of time.