ExtVagrant

Installation

$ wget -qO ~/.vagrant.d/Vagrantfile https://raw.githubusercontent.com/patleb/ext_vagrant/master/Vagrantfile

Configuration

In your project Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure_machines(
  db: { active: true }
)

Vagrant.configure(2) do |config|
  ...
end

or

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure_machines(db: { active: true }) do |config|
  ...
end

Defaults

web: { active: true,  memory: '1024', hostname: 'vagrant.web'},
db:  { active: false, memory: '512',  hostname: 'vagrant.db'}

VirtualBox Snapshots

$ VBoxManage snapshot "web-$(cat .vagrant/web_ip)" take <snapshot name>
$ VBoxManage snapshot "web-$(cat .vagrant/web_ip)" restorecurrent