ansible: Add new CI hosts
[lttng-ci.git] / automation / ansible / vars / ci-instances.yml
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'
77 - meta:
78 address: 172.18.16.2
79 lxd:
80 name: ci-node-deb12-amd64-02
81 jenkins:
82 label: 'deb12-amd64 deb12'
83 - meta:
84 address: 172.18.16.3
85 lxd:
86 name: ci-node-deb12-amd64-03
87 jenkins:
88 label: 'deb12-amd64 deb12'
89 - meta:
90 address: 172.18.16.4
91 lxd:
92 name: ci-node-deb12-amd64-04
93 jenkins:
94 label: 'deb12-amd64 deb12'
95 - meta:
96 address: 172.18.16.5
97 lxd:
98 name: ci-node-deb12-amd64-05
99 jenkins:
100 label: 'deb12-amd64 deb12'
101 - meta:
102 address: 172.18.16.6
103 lxd:
104 name: ci-node-deb12-amd64-06
105 jenkins:
106 label: 'deb12-amd64 deb12'
107 - meta:
108 address: 172.18.16.7
109 lxd:
110 name: ci-node-deb12-amd64-07
111 jenkins:
112 label: 'deb12-amd64 deb12'
113 - meta:
114 address: 172.18.16.8
115 lxd:
116 name: ci-node-deb12-amd64-08
117 jenkins:
118 label: 'deb12-amd64 deb12'
This page took 0.043138 seconds and 4 git commands to generate.