Blame view

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