# -*- mode: ruby -*- # vi: set ft=ruby : hosts = { "vh5" => "192.168.36.10", "vh6" => "192.168.36.11", "vh7" => "192.168.36.12" } Vagrant.configure("2") do |config| hosts.each do |name, ip| config.vm.define name do |machine| machine.vm.box = "ubuntu/trusty32" machine.vm.hostname = "%s.sample.org" % name machine.vm.network :private_network, ip: ip machine.vm.provider "virtualbox" do |v| v.name = name v.customize ["modifyvm", :id, "--memory", 200] end machine.vm.provision "ansible" do |ansible| ansible.playbook = "vagrant-provision.yml" end end end end