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

An Introduction to Vagrant & Vaprobash

An Introduction to Vagrant & Vaprobash

A quick overview of Vagrant and the main provisioners and an overview of Vaprobash.

Dries Vints

April 30, 2014
Tweet

More Decks by Dries Vints

Other Decks in Programming

Transcript

  1. ABOUT ME ▸ Developer at BeatSwitch ▸ Writer of Laravel

    Weekly ▸ Contributor for Laracon EU
  2. WHAT WILL THIS TALK NOT COVER? ▸ Detailed provisioning ▸

    Server configuration (Apache, Nginx) ▸ Vagrant deployment
  3. WHAT WILL THIS TALK COVER? ▸ Quick intro of Vagrant

    & basics ▸ Quick overview of provisioners ▸ Getting started with Vaprobash
  4. WHAT IS VAGRANT? ▸ Created by Mitchell Hashimoto in 2010

    ▸ Development environments ▸ Lightweight, reproducible and sharable
  5. WHY VAGRANT? ▸ Sharable development environments ▸ No more messing

    w/ your workstation ▸ Works on all major OS: Linux, OSX and Wincrap FREE
  6. TERMINOLOGY ▸ Boxes (vagrantcloud.com) ▸ Host and Guest ▸ Provider

    (Virtualbox, VM Ware) ▸ Provisioner ▸ Synced Folder ▸ Vagrantfile
  7. VAGRANTFILE Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise32" config.vm.provision :shell, :path

    => "bootstrap.sh" config.vm.network :forwarded_port, host: 4567, guest: 80 end
  8. COMMANDS $ vagrant up $ vagrant reload $ vagrant halt

    $ vagrant suspend $ vagrant resume $ vagrant provision $ vagrant ssh $ vagrant destroy $ vagrant share
  9. PUPPET - CHEF - ANSIBLE ▸ Puppet: not sequential ▸

    Chef: high learning curve & chaotic documentation ▸ Ansible: easy (read: easier)
  10. VAPROBASH ▸ Created by Chris Fidao ▸ Vagrant Provisioning Bash

    Scripts ▸ Goal: easy to use provisioning
  11. CREDITS ▸ Erika Heidi for some ideas of her own

    talk ▸ Chris Fidao for Vaprobash ▸ Mitchell Hashimoto for Vagrant ▸ BeatSwitch for being awesome