A typical Ansible inventory is a text file that contains groups of hosts and their variables. In the case of OpenShift, there are specific sections that may be present depending on the deployment topology and other requirements. They are summarized in the following table:
Section
|
Description
|
Required |
masters |
Hosts for installation of master services, notably API. Can be a single node for standalone deployment, or an odd number of hosts for an HA setup. |
Yes |
new_masters |
Additional hosts for installation of master components when scaling an existing cluster up. |
No |
nodes |
Hosts for installation of node components, notably kubelet. Usually, there is more than one node, because best practice ... |