Blame view

Vagrantfile 817 Bytes
4039e577   Lars Tiede   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
  # -*- 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
b0bbd8f1   Lars Tiede   new config flag f...
14
      config.ssh.insert_key = false
4039e577   Lars Tiede   first commit
15
16
  
      config.vm.define "target2" do |node|
4039e577   Lars Tiede   first commit
17
18
19
20
          node.vm.network :private_network, :ip => '10.20.1.4'
      end
  
      config.vm.define "target1" do |node|
4039e577   Lars Tiede   first commit
21
22
23
24
          node.vm.network :private_network, :ip => '10.20.1.3'
      end
  
      config.vm.define "control" do |node|
4039e577   Lars Tiede   first commit
25
26
27
28
29
30
31
          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