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 | |
8 | ||
9 | # @see https://docs.ansible.com/ansible/latest/collections/community/general/lxd_container_module.html#ansible-collections-community-general-lxd-container-module | |
10 | # @example a container instance with the default image (deb12 amd64) | |
11 | # - meta: | |
12 | # address: 192.168.1.2 | |
13 | # lxd: | |
14 | # name: ci-node-example | |
15 | # | |
16 | # The meta.address is used to fill in the default lxd.config['user.network-config'] value | |
17 | # templated from the cloud_init_netconf.j2 template. Note that this does not change the | |
18 | # configuration inside an already deployed instances. The merged value of lxd is passed | |
19 | # as arguments to community.general.lxd_container task. | |
20 | # | |
21 | # When a container/vm is created, the target within the cluster is | |
22 | # determined by the allocation strategy configured for the LXD cluster. The | |
23 | # default is to allocate the instance to the cluster member with the fewest | |
24 | # instances (resource usage not considered). | |
25 | # | |
26 | # Once the instances are provisied meta.address and lxd.name are used to update the | |
27 | # DNS records in Samba. @see scripts/update_dns_entry.py. | |
28 | # | |
29 | # @example a container created on a specific cluster member | |
30 | # - meta: | |
31 | # address: 192.168.1.2 | |
32 | # lxd: | |
33 | # name: ci-node-example | |
34 | # # This only affects creation, the container is not moved if it | |
35 | # # already exists in the cluster. | |
36 | # target: ci-host-amd64-1a | |
37 | # | |
38 | # @example a virtual machine with the default image | |
39 | # - meta: | |
40 | # address: 192.168.1.2 | |
41 | # lxd: | |
42 | # name: ci-rootnode-example | |
43 | # type: virtual-machine | |
44 | # profiles: | |
45 | # - ci-rootnode | |
46 | # | |
47 | # @example a VM with an ISO attached as a cdrom | |
48 | # - meta: | |
49 | # address: 192.168.1.2 | |
50 | # lxd: | |
51 | # name: ci-rootnode-example | |
52 | # type: virtual-machine | |
53 | # profiles: | |
54 | # - ci-rootnode | |
55 | # # If there are configuration errors, sometimes the state | |
56 | # # will need to be set to stopped to apply any differences. | |
57 | # # Some values, eg. raw.apparmor, cannot be changed while the | |
58 | # # VM or container is online. Note that the image needs to | |
59 | # # be readable as the user 'nobody'. | |
60 | # # state: stopped | |
61 | # config: | |
62 | # raw.qemu: '-drive file=/path/to/image.iso,media=cdrom' | |
63 | # raw.apparmor: '/path/to/image.iso rk,' | |
64 | # | |
65 | # Console access, assuming the remote 'ci' is connected to the LXD cluster: | |
66 | # lxc console ci:ci-rootnode-example --type vga | |
67 | # Text console (may not have output depending on boot settings) | |
68 | # lxc console ci:ci-rootnode-example | |
69 | # | |
70 | containers: | |
71 | - meta: | |
72 | address: 172.18.16.1 | |
73 | lxd: | |
74 | name: ci-node-deb12-amd64-01 | |
75 | jenkins: | |
76 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 77 | mode: EXCLUSIVE |
c3c15dc7 KS |
78 | - meta: |
79 | address: 172.18.16.2 | |
80 | lxd: | |
81 | name: ci-node-deb12-amd64-02 | |
82 | jenkins: | |
83 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 84 | mode: EXCLUSIVE |
c3c15dc7 KS |
85 | - meta: |
86 | address: 172.18.16.3 | |
87 | lxd: | |
88 | name: ci-node-deb12-amd64-03 | |
89 | jenkins: | |
90 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 91 | mode: EXCLUSIVE |
c3c15dc7 KS |
92 | - meta: |
93 | address: 172.18.16.4 | |
94 | lxd: | |
95 | name: ci-node-deb12-amd64-04 | |
96 | jenkins: | |
97 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 98 | mode: EXCLUSIVE |
c3c15dc7 KS |
99 | - meta: |
100 | address: 172.18.16.5 | |
101 | lxd: | |
102 | name: ci-node-deb12-amd64-05 | |
103 | jenkins: | |
104 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 105 | mode: EXCLUSIVE |
c3c15dc7 KS |
106 | - meta: |
107 | address: 172.18.16.6 | |
108 | lxd: | |
109 | name: ci-node-deb12-amd64-06 | |
110 | jenkins: | |
111 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 112 | mode: EXCLUSIVE |
c3c15dc7 KS |
113 | - meta: |
114 | address: 172.18.16.7 | |
115 | lxd: | |
116 | name: ci-node-deb12-amd64-07 | |
117 | jenkins: | |
118 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 119 | mode: EXCLUSIVE |
c3c15dc7 KS |
120 | - meta: |
121 | address: 172.18.16.8 | |
122 | lxd: | |
123 | name: ci-node-deb12-amd64-08 | |
124 | jenkins: | |
125 | label: 'deb12-amd64 deb12' | |
7ff14a97 | 126 | mode: EXCLUSIVE |