Upload
jeroen-reijn
View
247
Download
1
Tags:
Embed Size (px)
DESCRIPTION
This was my 8 minute presentation about "Vagrant for developers" at one of our internal Hippo Friday sessions.
Citation preview
…and why it could be your new best friend!
@jreijn
DOING CONSULTING?• MySQL?
• Postgres?
• Oracle?
• MongoDB?
• Couchbase?
• Elasticsearch?
• SOLR?
• Java 6, 7 or 8?
LOCAL INSTALLATION?
=
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
VAGRANTFILE
MORE COMMANDS$ vagrant status $ vagrant ssh $ vagrant reload$ vagrant provision$ vagrant suspend$ vagrant resume $ vagrant halt $ vagrant destroy $ vagrant package $ vagrant plugin
VAGRANT PROVISION
PUPPETclass { 'postgresql::server': }
class { 'postgresql::server::contrib':}
postgresql::server::db { 'book': user => 'vagrant', password => postgresql_password('vagrant', 'password')}
RESOURCES
• Vagrant website: http://www.vagrantup.com/
• List of available Vagrant boxes: http://www.vagrantbox.es/
• Virtualbox: https://www.virtualbox.org/