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.

Db6218c1b56d64e775eb79ea4f2889dd?s=128

Sebastian

March 20, 2014
Tweet

Transcript

  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:

    "10.61.6.2" 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 git@github.com: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