-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
executable file
·31 lines (27 loc) · 1.07 KB
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.provision "shell", path: "scripts/setup.sh"
config.ssh.forward_agent = true
# I wasn't able to ssh into the VMs until I commented out this line.
# config.ssh.insert_key = false
(1..3).each do |i|
config.vm.define "broker#{i}" do |s|
s.vm.hostname = "broker#{i}"
s.vm.network "private_network", ip: "10.30.3.4#{i}", netmask: "255.255.255.0", virtualbox__intnet: "my-network", drop_nat_interface_default_route: true
#s.vm.provision "shell", path: "scripts/start-all.sh", args:"#{i}", privileged: false
end
end
(1..1).each do |i|
config.vm.define "spark#{i}" do |s|
s.vm.hostname = "spark#{i}"
s.vm.network "private_network", ip: "10.30.3.3#{i}", netmask: "255.255.255.0", virtualbox__intnet: "my-network", drop_nat_interface_default_route: true
s.vm.network :forwarded_port, guest: 4040, host: 4041
end
end
config.vm.provider "virtualbox" do |v1|
v1.memory = "1048"
v1.cpus = 2
end
end