Generating the host inventory
Generate the host inventory with the helper included in the image, naming the control plane and compute hosts, and then review the generated file.
The inventory lists every host and assigns it to the Kubernetes groups. Write it by hand, or generate it with the helper included in the image. To generate it, perform the following steps.
Give an address explicitly as NAME=ADDRESS. A bare name is resolved from the host file, which is why that file is mounted into the container. To refresh the addresses in an existing inventory instead, replace the generated arguments with update /opt/ccc-lcm/configs/inventory.ini. The previous file is kept with a .bak suffix.
A generated inventory has the following form:
[all]
host-1 ansible_host=192.0.2.11 ip=192.0.2.11
host-2 ansible_host=192.0.2.12 ip=192.0.2.12
host-3 ansible_host=192.0.2.13 ip=192.0.2.13
host-4 ansible_host=192.0.2.21 ip=192.0.2.21
host-5 ansible_host=192.0.2.22 ip=192.0.2.22
host-6 ansible_host=192.0.2.23 ip=192.0.2.23
[kube_control_plane]
host-1
host-2
host-3
[etcd]
host-1
host-2
host-3
[kube_node]
host-1
host-2
host-3
host-4
host-5
host-6
