What is it?
Why use it?
- quick 'crash and burn' test sites
- developers can get clean/consistent environments
- can use to share a demo of an application or stack
What is it comprised of?
- providers - this is the vagrant backend - I normally use virtualbox being from a linux shop, but could use vmware, aws etc
- boxes - these are the predefined images to build env according to the DSL
- vagrantfile - this contains the DSL and describes how the environment should be.
- based on Ruby, unfortunately. ;-)
Enough already, I just want to do it.
- yum install vagrant (I use rhel. sorry.)
- however its ruby - so can do gem install vagrant if so inclined
- yum -y install VirtualBox
- (if the yum install fails: wget http://download.virtualbox.org/virtualbox/4.3.26/VirtualBox-4.3-4.3.26_98988_el6-1.x86_64.rpmrpm -Uvh VirtualBox*
- create a vagrant file:
- vagrant init (creates base config file)
- vagrant up
- vagrant ssh
- vagrant halt
- vagrant provision - runs provisioning commands
- vagrant suspend (keeps state)
- vagrant resume (starts where you left off)
- vagrant reload (why not call this reboot?)
- vagrant destroy
- vagrant status
- vagrant box list
- vagrant package - creates new box files
- can add a new box someone else has created:
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box