Vagrantfile 817 Bytes
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"


# I don't know anything about Ruby! I am sorry!


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

    config.vm.box = "ubuntu/trusty64"
    config.vm.provision :hosts # plugin: magically fills /etc/hosts
    config.ssh.insert_key = false

    config.vm.define "target2" do |node|
        node.vm.network :private_network, :ip => '10.20.1.4'
    end

    config.vm.define "target1" do |node|
        node.vm.network :private_network, :ip => '10.20.1.3'
    end

    config.vm.define "control" do |node|
        node.vm.network :private_network, :ip => '10.20.1.2'
        node.vm.provision "file", source: "~/.vagrant.d/insecure_private_key",
            destination: "~/.ssh/id_rsa"
        #node.ssh.forward_agent = true
    end

end