DotVm
What is that?
DotVm is plugin which makes your life easier when it comes to setup both simple VM in Vagrant and bigger development environments. You can plug multiple infrastructure projects into one DotVm instance. Each project can contain many VMs, splitted (or not) into several small YAML files.
How to start using DotVm
First you need to install DotVm plugin:
$ vagrant plugin install vagrant-dotvm
It's also recommended to install plugin for easier work with groups:
$ vagrant plugin install vagrant-group
Then create Vagrantfile like that:
require 'vagrant-dotvm'
Vagrant.configure(2) do |config|
# config directory will be expected in the same
# directory as Vagrantfile.
config_path = File.dirname(File.(__FILE__)) + "/config"
dotvm = VagrantPlugins::Dotvm::Dotvm.new config_path
dotvm.inject(config)
end
Prepare directory for storing your projects:
$ mkdir -p config/projects
How to configure machine
You need to create folder named after your project in config/projects
.
In this folder you can create as many YAML files as you want.
In each one you are able to define multiple machines.
Please refer to example to see possible options.
Available variables
You can use variables inside of config values.
Environment variables are accessible by using env prefix, e.g. %env.LOGNAME%
.
Predefined variables:
%project.host%
- points to project directory on host%project.guest%
- points to project directory on guest
More information
For more information please follow to wiki.