-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
25 lines (21 loc) · 859 Bytes
/
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
##################################################
### https://github.com/julienstroheker/DSV.git ###
##################################################
Vagrant.configure("2") do |config|
config.vm.provision :shell, path: "scripts/bootstrap.sh"
config.vm.box = "ubuntu/trusty64"
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.define "manager" do |manager|
manager.vm.hostname = "manager"
manager.vm.network "forwarded_port", guest: 4243, host: 4243
manager.vm.network "private_network", ip: "10.0.0.10"
manager.vm.provision :shell, path: "scripts/manager.sh"
end
(1..2).each do |i|
config.vm.define "node-#{i}" do |node|
node.vm.hostname = "node-#{i}"
node.vm.provision :shell, path: "scripts/node.sh"
node.vm.network "private_network", ip: "10.0.0.2#{i}"
end
end
end