-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
72 lines (65 loc) · 2.47 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# UCP 2.1 node for DDC
config.vm.define "ucp-vancouver-node1" do |ucp_vancouver_node1|
ucp_vancouver_node1.vm.box = "ubuntu/xenial64"
ucp_vancouver_node1.vm.network "private_network", ip: "172.28.128.10"
ucp_vancouver_node1.vm.hostname = "ucp.demo-gods.com"
config.vm.provider :virtualbox do |vb|
v.memory = 2048
v.cpus = 2
v.name = "ucp"
end
ucp_vancouver_node1.vm.provision "shell", path: "scripts/ucpscript.sh"
end
# DTR Node 1 for DDC setup
config.vm.define "dtr-vancouver-node1" do |dtr_vancouver_node1|
dtr_vancouver_node1.vm.box = "ubuntu/xenial64"
dtr_vancouver_node1.vm.network "private_network", ip: "172.28.128.11"
dtr_vancouver_node1.vm.hostname = "dtr.demo-gods.com"
config.vm.provider :virtualbox do |vb|
v.memory = 2048
v.cpus = 2
v.name = "dtr-vancouver-node1"
end
dtr_vancouver_node1.vm.provision "shell", path: "scripts/dtrscript.sh"
end
# Application Worker Node 1
config.vm.define "worker-node1" do |worker_node1|
worker_node1.vm.box = "ubuntu/xenial64"
worker_node1.vm.network "private_network", ip: "172.28.128.12"
worker_node1.vm.hostname = "worker-node1.demo-gods.com"
config.vm.provider :virtualbox do |vb|
v.memory = 2048
v.cpus = 2
v.name = "worker-node1"
end
worker_node1.vm.provision "shell", path: "scripts/worker-node1.sh"
end
# Application Worker Node 2
config.vm.define "worker-node2" do |worker_node2|
worker_node2.vm.box = "ubuntu/xenial64"
worker_node2.vm.network "private_network", ip: "172.28.128.13"
worker_node2.vm.hostname = "worker-node2.demo-gods.com"
config.vm.provider :virtualbox do |vb|
v.memory = 2048
v.cpus = 2
v.name = "worker-node2"
end
worker_node2.vm.provision "shell", path: "scripts/worker-node2.sh"
end
# Application Worker Node 3
config.vm.define "worker-node3" do |worker_node3|
worker_node3.vm.box = "ubuntu/xenial64"
worker_node3.vm.network "private_network", ip: "172.28.128.14"
worker_node3.vm.hostname = "worker-node3.demo-gods.com"
config.vm.provider :virtualbox do |vb|
v.memory = 2048
v.cpus = 2
v.name = "worker-node3"
end
worker_node3.vm.provision "shell", path: "scripts/worker-node3.sh"
SHELL
end
end