-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
36 lines (33 loc) · 1.21 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
32
33
34
35
36
LINUX_INSTANCES=2
WINDOWS_INSTANCES=0
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |v|
v.memory = 256
v.cpus = 1
end
#management node
config.vm.define "mgmnt" do |node|
node.vm.box = "ubuntu/trusty64"
node.vm.network "private_network", ip: "10.0.15.10"
node.vm.hostname = "mgment"
node.vm.provision "shell", path: "scripts/setup-mgmnt.sh"
#node.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/"
end
# setup linux nodes...
(1..LINUX_INSTANCES).each do |i|
config.vm.define "linux-node-#{i}" do |node|
node.vm.box = "ubuntu/trusty64"
node.vm.network "private_network", ip: "10.0.16.#{ i + 9 }"
node.vm.hostname = "linux-node-#{i}"
end
end
#setup windows nodes...
(1..WINDOWS_INSTANCES).each do |i|
config.vm.define "win-node-#{i}" do |node|
node.vm.box = "opentable/win-2012r2-standard-amd64-nocm"
node.vm.network "private_network", ip: "10.0.17.#{ i + 9 }"
node.vm.hostname = "win-node-#{i}"
node.vm.provision "shell", path: "scripts/setup-windows-clients.ps1"
end
end
end