-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
186 lines (159 loc) · 8.81 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# config.vm.box = "precise64" # 12.04
# config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
# config.vm.box = "raring64" # 13.04
# config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box"
# config.vm.box = "trusty64" # 14.04
# config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
# config.vm.box = "wily64" # 15.10
# config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/wily/current/wily-server-cloudimg-amd64-vagrant-disk1.box"
# config.vm.box = "xenial64" # 16.04
# config.vm.box_url = "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box"
config.vm.box = "bionic64" # 18.04
config.vm.box_url = "https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64-vagrant.box"
# config.vm.box = "focal64" # 20.04
# config.vm.box_url = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-vagrant.box"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
config.vm.define "alerta", primary: true do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.100"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/mongodb.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
end
config.vm.define "alerta-postgres", primary: true do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.101"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
end
config.vm.define "alerta-nginx", primary: true do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.102"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/nginx.sh"
end
config.vm.define "alerta-centos7", primary: true do |alerta|
alerta.vm.box = "centos/7"
alerta.vm.network :private_network, ip: "192.168.0.103"
alerta.vm.provision :shell, :path => "scripts/centos/base.sh"
alerta.vm.provision :shell, :path => "scripts/centos/mongodb.sh"
alerta.vm.provision :shell, :path => "scripts/centos/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/centos/apache.sh"
end
config.vm.define "alerta-amzn2", primary: true do |alerta|
alerta.vm.box = "winky/amazonlinux-2"
alerta.vm.network :private_network, ip: "192.168.0.104"
alerta.vm.provision :shell, :path => "scripts/centos/base.sh"
alerta.vm.provision :shell, :path => "scripts/centos/mongodb.sh"
alerta.vm.provision :shell, :path => "scripts/centos/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/centos/apache.sh"
end
config.vm.define "alerta-nagios3" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.110"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/nagios3.sh"
end
# ##################################################################
config.vm.define "alerta-nagios4" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.111"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/nagios4.sh"
end
config.vm.define "alerta-naemon" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.112"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/naemon.sh"
end
config.vm.define "alerta-zabbix2" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.113"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/zabbix2.sh"
end
config.vm.define "alerta-zabbix3" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.114"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/zabbix3.sh"
end
config.vm.define "alerta-riemann" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.115"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/riemann.sh"
end
config.vm.define "alerta-sensu" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.115"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/sensu.sh"
end
config.vm.define "alerta-kibana3" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.116"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/kibana.sh"
end
config.vm.define "alerta-kibana4" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.117"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/kibana4.sh"
end
config.vm.define "alerta-kibana5" do |alerta|
alerta.vm.provider :virtualbox do |v|
v.memory = 2048
v.cpus = 2
end
alerta.vm.network :private_network, ip: "192.168.0.118"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/kibana5.sh"
end
config.vm.define "alerta-kapacitor" do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.119"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/kapacitor.sh"
end
config.vm.define "alerta-grafana", primary: true do |alerta|
alerta.vm.network :private_network, ip: "192.168.0.120"
alerta.vm.provision :shell, :path => "scripts/ubuntu/base.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/postgres.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/alerta.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/apache.sh"
alerta.vm.provision :shell, :path => "scripts/ubuntu/grafana.sh"
end
end