forked from NeCTAR-RC/nectar-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
356 lines (324 loc) · 11.5 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
Vagrant.configure("2") do |config|
# Debian 7 (wheezy)
config.vm.define "debian7" do |c|
c.vm.box = "debian/wheezy64"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Debian 8 (jessie)
config.vm.define "debian8" do |c|
c.vm.box = "debian/jessie64"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Debian 9 (stretch)
config.vm.define "debian9" do |c|
c.vm.box = "debian/stretch64"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Ubuntu 14.04 (trusty)
config.vm.define "ubuntu1404" do |c|
c.vm.box = "ubuntu/trusty64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-trusty64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Ubuntu 14.04 (trusty) with Murano Agent
config.vm.define "ubuntu1404-murano-agent" do |c|
c.vm.box = "ubuntu/trusty64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-trusty64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook-murano-agent.yml"
ansible.become = true
end
end
# Ubuntu 16.04 (xenial)
config.vm.define "ubuntu1604" do |c|
c.vm.box = "ubuntu/xenial64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-xenial64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Ubuntu 16.04 (xenial) with Murano Agent
config.vm.define "ubuntu1604-murano-agent" do |c|
c.vm.box = "ubuntu/xenial64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-xenial64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook-murano-agent.yml"
ansible.become = true
end
end
# Ubuntu 17.10 (artful)
config.vm.define "ubuntu1710" do |c|
c.vm.box = "ubuntu/artful64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "peru/ubuntu-17.10-desktop-amd64"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Ubuntu 18.04 (bionic)
config.vm.define "ubuntu1804" do |c|
c.vm.box = "ubuntu/bionic64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "peru/ubuntu-18.04-server-amd64"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Ubuntu 18.04 (bionic) with Murano Agent
config.vm.define "ubuntu1804-murano-agent" do |c|
c.vm.box = "ubuntu/bionic64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "peru/ubuntu-18.04-server-amd64"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook-murano-agent.yml"
ansible.become = true
end
end
# Ubuntu 18.04 (bionic) with Murano/Docker
config.vm.define "ubuntu1804-murano-docker" do |c|
c.vm.box = "ubuntu/bionic64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "peru/ubuntu-18.04-server-amd64"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook-murano-docker.yml"
ansible.become = true
end
end
# CentOS 6
config.vm.define "centos6" do |c|
c.vm.box = "centos/6"
c.vm.provision "shell", inline: "sudo yum -q -y install libselinux-python"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# CentOS 7
config.vm.define "centos7" do |c|
c.vm.box = "centos/7"
c.vm.provision "shell", inline: "sudo yum -q -y install libselinux-python"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# CentOS 7 with Murano Agent
config.vm.define "centos7-murano-agent" do |c|
c.vm.box = "centos/7"
c.vm.provision "shell", inline: "sudo yum -q -y install libselinux-python"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook-murano-agent.yml"
ansible.become = true
end
end
# Fedora 26
config.vm.define "fedora26" do |c|
c.vm.box = "fedora/26-cloud-base"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Fedora 27
config.vm.define "fedora27" do |c|
c.vm.box = "fedora/27-cloud-base"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Fedora 28
config.vm.define "fedora28" do |c|
c.vm.box = "fedora/28-cloud-base"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# openSUSE Leap 42
config.vm.define "opensuse42" do |c|
c.vm.box = "opensuse/openSUSE-42.3-x86_64"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# openSUSE Leap 15
config.vm.define "opensuse15" do |c|
c.vm.box = "opensuse/openSUSE-15.0-x86_64"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Scientific
config.vm.define "scientific6" do |c|
c.vm.box = "iamc/scientific65_x86_64_minimal"
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook.yml"
ansible.become = true
end
end
# Trove MySQL (Ubuntu 16.04 xenial)
config.vm.define "trove-mysql-ubuntu1604" do |c|
c.vm.box = "ubuntu/xenial64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-xenial64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3",
datastore: "mysql" }
ansible.playbook = "ansible/playbook-trove.yml"
ansible.become = true
end
end
# Trove PostgreSQL (Ubuntu 16.04 xenial)
config.vm.define "trove-pgsql-ubuntu1604" do |c|
c.vm.box = "ubuntu/xenial64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-xenial64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3",
datastore: "pgsql" }
ansible.playbook = "ansible/playbook-trove.yml"
ansible.become = true
end
end
# Ubuntu 14.04 (trusty) Jenkins slave
config.vm.define "ubuntu1404-jenkins" do |c|
c.vm.box = "ubuntu/trusty64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-trusty64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true }
ansible.playbook = "ansible/playbook-jenkins-slave.yml"
ansible.become = true
end
end
# Ubuntu 16.04 (xenial) Jenkins slave
config.vm.define "ubuntu1604-jenkins" do |c|
c.vm.box = "ubuntu/xenial64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-xenial64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook-jenkins-slave.yml"
ansible.become = true
end
end
# Undercloud Ubuntu 16.04 (xenial)
config.vm.define "undercloud-ubuntu1604" do |c|
c.vm.box = "ubuntu/xenial64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "peru/ubuntu-16.04-server-amd64"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook-undercloud.yml"
ansible.become = true
end
end
# Ubuntu 18.04 (bionic) Jenkins slave
config.vm.define "ubuntu1804-jenkins" do |c|
c.vm.box = "ubuntu/bionic64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "rboyer/ubuntu-bionic64-libvirt"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook-jenkins-slave.yml"
ansible.become = true
end
end
# Undercloud Ubuntu 18.04 (bionic)
config.vm.define "undercloud-ubuntu1804" do |c|
c.vm.box = "ubuntu/bionic64"
config.vm.provider "libvirt" do |v, override|
override.vm.box = "peru/ubuntu-18.04-server-amd64"
end
c.vm.provision "ansible" do |ansible|
ansible.extra_vars = { nectar_test_build: true,
ansible_python_interpreter: "/usr/bin/python3" }
ansible.playbook = "ansible/playbook-undercloud.yml"
ansible.become = true
end
end
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider :libvirt do |v|
v.memory = 2048
v.cpus = 2
v.machine_virtual_size = 4 # 4GB disk
end
config.vm.provider :virtualbox do |v|
v.memory = 2048
v.cpus = 2
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
end
# vi: set ft=ruby :