To install Red Hat 7.6 in the CSAH node:
In the Red Hat UI, ensure that, under Software Selection, Server with GUI is selected, as shown in the following figure:
Figure 1. Operating system installation options in UI
[root@csah ~]# hostnamectl set-hostname <hostname>.<base domain>
[root@csah ~]# hostnamectl set-hostname csah.example.com
As part of our validation, we created bond0 using 100 Gb NIC ports in slot 2 (p2p1 and p2p2):
# Create bond0 interface
[root@csah ~]# nmcli connection add type bond con-name bond0 ifname bond0 bond.options "lacp_rate=1,miimon=100,mode=802.3ad,xmit_hash_policy=layer3+4"
# Add slaves to bond0 interface
[root@csah ~]# nmcli con add type ethernet ifname p2p1 master bond0
[root@csah ~]# nmcli con add type ethernet ifname p2p2 master bond0
# Set IP Address to bond0 interface
[root@csah ~]# nmcli connection modify bond0 ipv4.method manual ipv4.address <ipaddress/cidr> connection.autoconnect yes ipv4.gateway <gateway> ipv4.dns <dns-server> ipv4.dns-search <base domain>
ex: nmcli connection modify bond0 ipv4.method manual ipv4.addresses 100.82.46.20/26 connection.autoconnect yes ipv4.gateway 100.82.46.1 ipv4.dns 100.82.32.10 ipv4.dns-search example.com
# Bring up bond0 interface
[root@csah ~]# nmcli connection up bond0
Note: Check the /proc/net/bonding/bond0 file and ensure that the slave interfaces (p2p1 and p2p2) are listed along with the bonding configuration.
Note: The assigned IP address must be able to reach the Internet, and the DNS must be able to resolve subscription.rhsm.redhat.com.
100.82.46.20 csah csah.example.com
[root@csah ~]# subscription-manager register --username <subscription.user> --password <subscription.password> --force
[root@csah ~]# subscription-manager attach --pool=<pool id>
[root@csah ~]# subscription-manager repos --enable= rhel-7-server-ansible-2.9-rpms
[root@csah ~]# yum install -y git ansible
Note: Do not use the username core. User core is used as part of the OpenShift Container Platform cluster setup and is a predefined user in CoreOS.
[root@csah ~]# useradd <user>
Note: The remainder of this guide assumes that user ansible is created to run playbooks.
[ansible@csah ~]$ ssh-keygen (press enter and go by defaults for the next set of questions)
[ansible@csah ~]$ cat .ssh/id_rsa.pub > .ssh/authorized_keys
[ansible@csah ~]$ chmod 600 .ssh/authorized_keys
visudo
# add the following line after # %wheel ALL=(ALL) NOPASSWD: ALL
ansible ALL=(ALL) NOPASSWD: ALL
[ansible@csah ~]$ git clone https://github.com/dell-esg/openshift-bare-metal.git