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

va (Short intro to vagrant)

va (Short intro to vagrant)

In this 15 min. talk, the basics of vagrant are described. It gives an overview about what problems vagrant solves and how one can start using vagrant. It also describes a common pattern of how to develop with vagrant in place.


March 20, 2014

More Decks by Sebastian

Other Decks in Programming


  1. va (A short intro to vagrant) MongoDB Vienna - March

    2014 @Sgoettschkes
  2. “It works on my machine”

  3. “It’s all in SETUP.md”

  4. “You just need to add ...”

  5. None
  6. Providers

  7. Provisioners #!

  8. Synced folders HOST GUEST /home/Seba stian/worksp ace/aweso meProject /opt/aweso meProject

    Virtualbox Shared folders NFS RSync SMB
  9. Configuration Vagrant.configure("2") do |config| config.vm.box = "Sgoettschkes/debian7" config.vm.network "private_network", ip:

    "" config.vm.hostname = "debian" config.vm.synced_folder "../project", "/opt/project" config.vm.provision shell, inline: "sudo apt-get update" end
  10. A sample workflow Repository Vagrantfile Provisioning files … $ git

    clone [email protected]:vagrantLover/awesomeVm.git $ cd awesomeVm $ vagrant up # this may take a while $ vagrant ssh
  11. Thanks

  12. Resources • http://www.vagrantup.com/ • https://vagrantcloud.com/ • http://stackoverflow. com/questions/tagged/vagrant • IRC:

    #vagrant on Freenode