Compute nodes in OpenShift Container Platform 4.6 can run Red Hat CoreOS or Red Hat Enterprise Linux 7.9.
Note: Red Hat does not support running Red Hat Enterprise Linux 8.x on a compute node.
To modify the file:
Note: Supported values for the operating system are rhel and rhcos. The following example uses a Red Hat Enterprise Linux compute node. To find out which values to specify, see this sample file in GitHub.
new_compute_nodes:
- name: compute-3
ip_os: 192.168.46.27
ip_idrac: 192.168.34.27
os: rhel
Note: On the CSAH node, run the commands as user ansible unless otherwise specified.
[ansible@csah python]$ pwd
/home/ansible/openshift-bare-metal/python
[ansible@csah python]$ python3 generate_inventory_file.py --add --ver 4.6 --nodes nodes.yaml --id_user <idrac user> --id_pass <idrac_password>
Enter complete path to existing inventory file: /home/ansible/openshift-bare-metal/ansible/generated_inventory
Do you want to perform bonding for 'new_compute_nodes' (y/NO): y
Note: Specify the bonding information as appropriate. An updated inventory file is created with new compute nodes information added
[ansible@csah ansible]$ pwd
/home/ansible/openshift-bare-metal/ansible
[ansible@csah ansible]$ ansible-playbook -i <updated inventory file> ocp.yaml