Vagrant VM definition for my own usage.
This is just a bunch of configuration files and Vagrantfile
that are used for my own benefit.
The provisioner used is the chef solo provisioner,
because it's way more portable than a bunch of bash
scripts.
- Ruby
- rbenv is recommended
- VirtualBox
- Vagrant
- Vagrant vbguest plugin is recommended (although not required)
A mapping for mounting directories from the host machine to the guest machine.
The file is JSON formatted where the root object is an array. The array is expected to contain maps with at least two keys:
host
- the dir of the host, to mount.guest
- the path to which we want to mount the dir to.
NOTE: the value of
guest
must be a full path in the guest machine, for example:/home/vagrant/host_home
[
{
"host" : "~/",
"guest" : "/home/vagrant/host_home"
}
]
By using the provided Makefile
;
$ make
This should be:
- Installing the librarian-chef gem
- Fetching all cookbooks by using
librarian-chef
After running make
, use vagrant
as you'd normally use it;
$ vagrant up
The default box is a Debian 7 (wheezt)
box, however one can change it by providing a box name by using the VAGRANT_BOX
environment variable;
$ VAGRANT_BOX=debian/jessie64 vagrant up