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

A short introduction to Vagrant for developers

A short introduction to Vagrant for developers

This was my 8 minute presentation about "Vagrant for developers" at one of our internal Hippo Friday sessions.

2c3ad1c6891845c582e0171e2e1753b1?s=128

Jeroen Reijn

January 24, 2014
Tweet

Transcript

  1. …and why it could be your new best friend! @jreijn

  2. DOING CONSULTING? • MySQL? • Postgres? • Oracle? • MongoDB?

    • Couchbase? • Elasticsearch? • SOLR? • Java 6, 7 or 8?
  3. LOCAL INSTALLATION?

  4. None
  5. None
  6. =

  7. JUST 3 STEPS! # Download and set the “base” VM

    image
 $ vagrant box add base http://files.vagrantup.com/ precise64.box # Initialise a new vagrant project by creating a Vagrantfile
 $ vagrant init # Boot the VM based on the config file we created
 $ vagrant up
  8. VAGRANTFILE

  9. None
  10. MORE COMMANDS $ vagrant status
 $ vagrant ssh
 $ vagrant

    reload
 $ vagrant provision
 $ vagrant suspend
 $ vagrant resume
 $ vagrant halt
 $ vagrant destroy
 $ vagrant package
 $ vagrant plugin
  11. VAGRANT PROVISION

  12. PUPPET class { 'postgresql::server': } class { 'postgresql::server::contrib':} postgresql::server::db {

    'book':
 user => 'vagrant',
 password => postgresql_password('vagrant', 'password')
 }
  13. None
  14. RESOURCES • Vagrant website: http://www.vagrantup.com/ • List of available Vagrant

    boxes: http:// www.vagrantbox.es/ • Virtualbox: https://www.virtualbox.org/
  15. None