-
Notifications
You must be signed in to change notification settings - Fork 11
/
Vagrantfile
89 lines (73 loc) · 2.03 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox"
# database1
config.vm.define "database1" do |v|
v.vm.box = "debian/buster64"
v.vm.hostname = "database1"
v.vm.network "private_network", ip: "192.168.51.100"
v.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "database1"
end
v.vm.provision "ansible" do |ansible|
ansible.playbook = ".ansible/redis.yml"
end
end
# kamailio1
config.vm.define "kamailio1" do |v|
v.vm.box = "debian/buster64"
v.vm.hostname = "kamailio1"
v.vm.network "private_network", ip: "192.168.51.11"
v.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "kamailio1"
end
v.vm.provision "ansible" do |ansible|
ansible.playbook = ".ansible/kamailio.yml"
end
end
# kamailio2
config.vm.define "kamailio2" do |v|
v.vm.box = "debian/buster64"
v.vm.hostname = "kamailio2"
v.vm.network "private_network", ip: "192.168.51.12"
v.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "kamailio2"
end
v.vm.provision "ansible" do |ansible|
ansible.playbook = ".ansible/kamailio.yml"
end
end
# asterisk1
config.vm.define "asterisk1" do |v|
v.vm.box = "debian/buster64"
v.vm.hostname = "asterisk1"
v.vm.network "private_network", ip: "192.168.51.21"
v.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "asterisk1"
end
v.vm.provision "ansible" do |ansible|
ansible.playbook = ".ansible/asterisk.yml"
end
end
# asterisk2
config.vm.define "asterisk2" do |v|
v.vm.box = "debian/buster64"
v.vm.hostname = "asterisk2"
v.vm.network "private_network", ip: "192.168.51.22"
v.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "asterisk2"
end
v.vm.provision "ansible" do |ansible|
ansible.playbook = ".ansible/asterisk.yml"
end
end
end