Commit | Line | Data |
---|---|---|
c3c15dc7 KS |
1 | --- |
2 | # The search domain for instance names | |
3 | search_domain: internal.efficios.com | |
4 | # Which DNS server to use for checks + updates | |
5 | name_server: smb-adc02.internal.efficios.com | |
6 | # The host to use for delegating lxd commands | |
7 | lxd_host: ci-host-amd64-1a.internal.efficios.com | |
455bd8ef KS |
8 | # Default host to create libvirt VMs on if not specified |
9 | libvirt_host: ci-host-amd64-1b.internal.efficios.com | |
c3c15dc7 KS |
10 | |
11 | # @see https://docs.ansible.com/ansible/latest/collections/community/general/lxd_container_module.html#ansible-collections-community-general-lxd-container-module | |
12 | # @example a container instance with the default image (deb12 amd64) | |
13 | # - meta: | |
14 | # address: 192.168.1.2 | |
15 | # lxd: | |
16 | # name: ci-node-example | |
17 | # | |
18 | # The meta.address is used to fill in the default lxd.config['user.network-config'] value | |
19 | # templated from the cloud_init_netconf.j2 template. Note that this does not change the | |
20 | # configuration inside an already deployed instances. The merged value of lxd is passed | |
21 | # as arguments to community.general.lxd_container task. | |
22 | # | |
23 | # When a container/vm is created, the target within the cluster is | |
24 | # determined by the allocation strategy configured for the LXD cluster. The | |
25 | # default is to allocate the instance to the cluster member with the fewest | |
26 | # instances (resource usage not considered). | |
27 | # | |
28 | # Once the instances are provisied meta.address and lxd.name are used to update the | |
29 | # DNS records in Samba. @see scripts/update_dns_entry.py. | |
30 | # | |
31 | # @example a container created on a specific cluster member | |
32 | # - meta: | |
33 | # address: 192.168.1.2 | |
34 | # lxd: | |
35 | # name: ci-node-example | |
36 | # # This only affects creation, the container is not moved if it | |
37 | # # already exists in the cluster. | |
38 | # target: ci-host-amd64-1a | |
39 | # | |
40 | # @example a virtual machine with the default image | |
41 | # - meta: | |
42 | # address: 192.168.1.2 | |
43 | # lxd: | |
44 | # name: ci-rootnode-example | |
45 | # type: virtual-machine | |
46 | # profiles: | |
47 | # - ci-rootnode | |
48 | # | |
49 | # @example a VM with an ISO attached as a cdrom | |
50 | # - meta: | |
51 | # address: 192.168.1.2 | |
52 | # lxd: | |
53 | # name: ci-rootnode-example | |
54 | # type: virtual-machine | |
55 | # profiles: | |
56 | # - ci-rootnode | |
57 | # # If there are configuration errors, sometimes the state | |
58 | # # will need to be set to stopped to apply any differences. | |
59 | # # Some values, eg. raw.apparmor, cannot be changed while the | |
60 | # # VM or container is online. Note that the image needs to | |
61 | # # be readable as the user 'nobody'. | |
62 | # # state: stopped | |
63 | # config: | |
64 | # raw.qemu: '-drive file=/path/to/image.iso,media=cdrom' | |
65 | # raw.apparmor: '/path/to/image.iso rk,' | |
66 | # | |
67 | # Console access, assuming the remote 'ci' is connected to the LXD cluster: | |
68 | # lxc console ci:ci-rootnode-example --type vga | |
69 | # Text console (may not have output depending on boot settings) | |
70 | # lxc console ci:ci-rootnode-example | |
71 | # | |
455bd8ef KS |
72 | # @example Define a VM using libvirt |
73 | # - vm: | |
74 | # # host: 'ci-host-example' | |
75 | # name: 'ci-rootnode-example' | |
76 | # disk: '/path/to/disk' | |
77 | # | |
78 | # @note libvirt VMs are created using the task roles/libvirt/vm.yml. | |
79 | # If `vm.host` not specified, then the host will default to the one defined | |
80 | # in `libvirt_host`. | |
81 | # | |
82 | # @note: `meta.address` doesn't set any additional information for libvirt VMs. | |
83 | # | |
c3c15dc7 KS |
84 | containers: |
85 | - meta: | |
86 | address: 172.18.16.1 | |
87 | lxd: | |
88 | name: ci-node-deb12-amd64-01 | |
89 | jenkins: | |
90 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 91 | mode: EXCLUSIVE |
c3c15dc7 KS |
92 | - meta: |
93 | address: 172.18.16.2 | |
94 | lxd: | |
95 | name: ci-node-deb12-amd64-02 | |
96 | jenkins: | |
97 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 98 | mode: EXCLUSIVE |
c3c15dc7 KS |
99 | - meta: |
100 | address: 172.18.16.3 | |
101 | lxd: | |
102 | name: ci-node-deb12-amd64-03 | |
103 | jenkins: | |
104 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 105 | mode: EXCLUSIVE |
c3c15dc7 KS |
106 | - meta: |
107 | address: 172.18.16.4 | |
108 | lxd: | |
109 | name: ci-node-deb12-amd64-04 | |
110 | jenkins: | |
111 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 112 | mode: EXCLUSIVE |
c3c15dc7 KS |
113 | - meta: |
114 | address: 172.18.16.5 | |
115 | lxd: | |
116 | name: ci-node-deb12-amd64-05 | |
117 | jenkins: | |
118 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 119 | mode: EXCLUSIVE |
c3c15dc7 KS |
120 | - meta: |
121 | address: 172.18.16.6 | |
122 | lxd: | |
123 | name: ci-node-deb12-amd64-06 | |
124 | jenkins: | |
125 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 126 | mode: EXCLUSIVE |
c3c15dc7 KS |
127 | - meta: |
128 | address: 172.18.16.7 | |
129 | lxd: | |
130 | name: ci-node-deb12-amd64-07 | |
131 | jenkins: | |
132 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 133 | mode: EXCLUSIVE |
c3c15dc7 KS |
134 | - meta: |
135 | address: 172.18.16.8 | |
136 | lxd: | |
137 | name: ci-node-deb12-amd64-08 | |
138 | jenkins: | |
139 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 140 | mode: EXCLUSIVE |
455bd8ef KS |
141 | # "Root" nodes in libvirt, since Jenkins can use the "libvirt agents" plugin |
142 | # to revert to a specific snapshot before running a job | |
143 | # | |
144 | # @NOTE: For Jenkins, the node configuration was initially created by cloning | |
145 | # or creating the nodes as they use a type of node which isn't 'simple' to | |
146 | # create through the API. The entire XML configuration would have to be written | |
147 | # from scratch. In effect, templates may be a better long term solution than | |
148 | # the current structure. | |
149 | # | |
150 | - jenkins: | |
151 | name: 'ci-rootnode-deb12-amd64-1a-01' | |
152 | label: 'deb12 deb12-amd64-rootnode' | |
153 | mode: EXCLUSIVE | |
154 | config: | |
155 | remoteFS: '/root' | |
156 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1a.internal.efficios.com' | |
157 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-1a-01' | |
158 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
159 | launcher/delegate/port: '22' | |
160 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
161 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
162 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1a.internal.efficios.com' | |
163 | ./virtualMachineName: 'ci-rootnode-deb12-amd64-1a-01' | |
164 | snapshotName: '' | |
165 | beforeJobSnapshotName: 'base-configuration' | |
166 | startupWaitingPeriodSeconds: '20' | |
167 | launcher/waitTimeMs: '20000' | |
168 | shutdownMethod: 'destroy' | |
169 | vm: | |
170 | name: 'ci-rootnode-deb12-amd64-1a-01' | |
171 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-1a-01.qcow' | |
172 | host: 'ci-host-amd64-1a.internal.efficios.com' | |
173 | meta: | |
174 | address: 172.18.17.1 | |
175 | - jenkins: | |
176 | name: 'ci-rootnode-deb12-i386-1a-01' | |
177 | label: 'deb12 deb12-i386-rootnode' | |
178 | mode: EXCLUSIVE | |
179 | config: | |
180 | remoteFS: '/root' | |
181 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1a.internal.efficios.com' | |
182 | launcher/virtualMachineName: 'ci-rootnode-deb12-i386-1a-01' | |
183 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
184 | launcher/delegate/port: '22' | |
185 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
186 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
187 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1a.internal.efficios.com' | |
188 | ./virtualMachineName: 'ci-rootnode-deb12-i386-1a-01' | |
189 | snapshotName: '' | |
190 | beforeJobSnapshotName: 'base-configuration' | |
191 | startupWaitingPeriodSeconds: '20' | |
192 | launcher/waitTimeMs: '20000' | |
193 | shutdownMethod: 'destroy' | |
194 | vm: | |
195 | name: 'ci-rootnode-deb12-i386-1a-01' | |
196 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-i386-1a-01.qcow' | |
197 | host: 'ci-host-amd64-1a.internal.efficios.com' | |
198 | meta: | |
199 | address: 172.18.17.2 | |
200 | - jenkins: | |
201 | label: 'deb12 deb12-amd64-rootnode' | |
202 | name: 'ci-rootnode-deb12-amd64-1b-01' | |
203 | mode: EXCLUSIVE | |
204 | config: | |
205 | remoteFS: '/root' | |
206 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1b.internal.efficios.com' | |
207 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-1b-01' | |
208 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
209 | launcher/delegate/port: '22' | |
210 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
211 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
212 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1b.internal.efficios.com' | |
213 | ./virtualMachineName: 'ci-rootnode-deb12-amd64-1b-01' | |
214 | snapshotName: '' | |
215 | beforeJobSnapshotName: 'base-configuration' | |
216 | startupWaitingPeriodSeconds: '20' | |
217 | launcher/waitTimeMs: '20000' | |
218 | shutdownMethod: 'destroy' | |
219 | vm: | |
220 | name: 'ci-rootnode-deb12-amd64-1b-01' | |
221 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-1b-01.qcow' | |
222 | host: 'ci-host-amd64-1b.internal.efficios.com' | |
223 | meta: | |
224 | address: 172.18.17.3 | |
225 | - jenkins: | |
226 | label: 'deb12 deb12-amd64-rootnode' | |
227 | name: 'ci-rootnode-deb12-amd64-1c-01' | |
228 | mode: EXCLUSIVE | |
229 | config: | |
230 | remoteFS: '/root' | |
231 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1c.internal.efficios.com' | |
232 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-1c-01' | |
233 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
234 | launcher/delegate/port: '22' | |
235 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
236 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
237 | snapshotName: '' | |
238 | beforeJobSnapshotName: 'base-configuration' | |
239 | startupWaitingPeriodSeconds: '20' | |
240 | launcher/waitTimeMs: '20000' | |
241 | shutdownMethod: 'destroy' | |
242 | vm: | |
243 | name: 'ci-rootnode-deb12-amd64-1c-01' | |
244 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-1c-01.qcow' | |
245 | host: 'ci-host-amd64-1c.internal.efficios.com' | |
246 | meta: | |
247 | address: 172.18.17.4 | |
248 | - jenkins: | |
249 | label: 'deb12 deb12-amd64-rootnode' | |
250 | name: 'ci-rootnode-deb12-amd64-1d-01' | |
251 | config: | |
252 | remoteFS: '/root' | |
253 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1d.internal.efficios.com' | |
254 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-1d-01' | |
255 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
256 | launcher/delegate/port: '22' | |
257 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
258 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
259 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-1d.internal.efficios.com' | |
260 | ./virtualMachineName: 'ci-rootnode-deb12-amd64-1d-01' | |
261 | snapshotName: '' | |
262 | beforeJobSnapshotName: 'base-configuration' | |
263 | startupWaitingPeriodSeconds: '20' | |
264 | launcher/waitTimeMs: '20000' | |
265 | shutdownMethod: 'destroy' | |
266 | vm: | |
267 | name: 'ci-rootnode-deb12-amd64-1d-01' | |
268 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-1d-01.qcow' | |
269 | host: 'ci-host-amd64-1d.internal.efficios.com' | |
270 | meta: | |
271 | address: 172.18.17.5 | |
272 | - jenkins: | |
273 | label: 'deb12 deb12-amd64-rootnode' | |
274 | name: 'ci-rootnode-deb12-amd64-2a-01' | |
275 | mode: EXCLUSIVE | |
276 | config: | |
277 | remoteFS: '/root' | |
278 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2a.internal.efficios.com' | |
279 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-2a-01' | |
280 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
281 | launcher/delegate/port: '22' | |
282 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
283 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
284 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2a.internal.efficios.com' | |
285 | ./virtualMachineName: 'ci-rootnode-deb12-amd64-2a-01' | |
286 | snapshotName: '' | |
287 | beforeJobSnapshotName: 'base-configuration' | |
288 | startupWaitingPeriodSeconds: '20' | |
289 | shutdownMethod: 'destroy' | |
290 | vm: | |
291 | name: 'ci-rootnode-deb12-amd64-2a-01' | |
292 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-2a-01.qcow' | |
293 | host: 'ci-host-amd64-2a.internal.efficios.com' | |
294 | meta: | |
295 | address: 172.18.17.6 | |
296 | - jenkins: | |
297 | label: 'deb12 deb12-amd64-rootnode' | |
298 | name: 'ci-rootnode-deb12-amd64-2b-01' | |
299 | mode: EXCLUSIVE | |
300 | config: | |
301 | remoteFS: '/root' | |
302 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2b.internal.efficios.com' | |
303 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-2b-01' | |
304 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
305 | launcher/delegate/port: '22' | |
306 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
307 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
308 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2b.internal.efficios.com' | |
309 | ./virtualMachineName: 'ci-rootnode-deb12-amd64-2b-01' | |
310 | snapshotName: '' | |
311 | beforeJobSnapshotName: 'base-configuration' | |
312 | startupWaitingPeriodSeconds: '20' | |
313 | launcher/waitTimeMs: '20000' | |
314 | shutdownMethod: 'destroy' | |
315 | vm: | |
316 | name: 'ci-rootnode-deb12-amd64-2b-01' | |
317 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-2b-01.qcow' | |
318 | host: 'ci-host-amd64-2b.internal.efficios.com' | |
319 | meta: | |
320 | address: 172.18.17.7 | |
321 | - jenkins: | |
322 | label: 'deb12 deb12-amd64-rootnode' | |
323 | name: 'ci-rootnode-deb12-amd64-2c-01' | |
324 | mode: EXCLUSIVE | |
325 | config: | |
326 | remoteFS: '/root' | |
327 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2c.internal.efficios.com' | |
328 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-2c-01' | |
329 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
330 | launcher/delegate/port: '22' | |
331 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
332 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
333 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2c.internal.efficios.com' | |
334 | ./virtualMachineName: 'ci-rootnode-deb12-amd64-2c-01' | |
335 | snapshotName: '' | |
336 | beforeJobSnapshotName: 'base-configuration' | |
337 | startupWaitingPeriodSeconds: '20' | |
338 | launcher/waitTimeMs: '20000' | |
339 | shutdownMethod: 'destroy' | |
340 | vm: | |
341 | name: 'ci-rootnode-deb12-amd64-2c-01' | |
342 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-2c-01.qcow' | |
343 | host: 'ci-host-amd64-2c.internal.efficios.com' | |
344 | meta: | |
345 | address: 172.18.17.8 | |
346 | - jenkins: | |
347 | label: 'deb12 deb12-amd64-rootnode' | |
348 | name: 'ci-rootnode-deb12-amd64-2d-01' | |
349 | mode: EXCLUSIVE | |
350 | config: | |
351 | remoteFS: '/root' | |
352 | launcher/hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2d.internal.efficios.com' | |
353 | launcher/virtualMachineName: 'ci-rootnode-deb12-amd64-2d-01' | |
354 | launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' | |
355 | launcher/delegate/port: '22' | |
356 | launcher/delegate/host: 'ci-rootnode-deb12-amd64-1a-01.internal.efficios.com' | |
357 | launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' | |
358 | ./hypervisorDescription: 'QEMU+ssh - ci-host-amd64-2d.internal.efficios.com' | |
359 | ./virtualMachineName: 'ci-rootnode-deb12-amd64-2d-01' | |
360 | snapshotName: '' | |
361 | beforeJobSnapshotName: 'base-configuration' | |
362 | startupWaitingPeriodSeconds: '20' | |
363 | launcher/waitTimeMs: '20000' | |
364 | shutdownMethod: 'destroy' | |
365 | vm: | |
366 | name: 'ci-rootnode-deb12-amd64-2d-01' | |
367 | disk: '/var/lib/libvirt/images/ci-rootnode-deb12-amd64-2d-01.qcow' | |
368 | host: 'ci-host-amd64-2d.internal.efficios.com' | |
369 | meta: | |
370 | address: 172.18.17.9 |