Home > Communication Service Provider Solutions > Telecom Multicloud Foundation > Red Hat > Guides > Red Hat Open Shift Container Platform Guides > Deployment Guide: Red Hat OpenShift Container Platform Reference Architecture for Telecom > Preparing the CSAH node
Note: If needed, an additional CSAH node can be added to ensure redundancy.
To install Red Hat Enterprise Linux 8.2 in the CSAH node:
Note: Ensure that OS Time Zone reflects UTC. For more information, see RH Solutions 4994241. See the following figure for an example Time Zone that synchronizes with UTC.
Ansible playbooks that are described in this guide use packages that are installed with the Server with GUI option. Click on Begin Installation.
[root@localhost~]# hostnamectl set-hostname <hostname FQDN>
Create a bridge interface and a bond interface with bridge as the “master” (primary) interface. Add “slaves” (secondary interfaces) to the bond and then assign an IP address to the bridge interface, as shown in the following example:
Note:
The assigned IP address must be able to reach the Internet, and the DNS must be able to resolve subscription.rhsm.redhat.com.
Ensure the interface names and IP addresses reflect the environment used.
# Create bridge interface
[root@csah-pri ~]# nmcli connection add type bridge ifname br0 con-name bridge-br0
# Create bond interface with bridge bridge-br0 as master
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" master bridge-br0
# Add slaves to bond0 interface
[root@csah-pri ~]# nmcli con add type ethernet ifname eno1 master bond0
[root@csah-pri ~]# nmcli con add type ethernet ifname ens2f0 master bond0
# Set IP Address to bridge-br0 interface
[root@csah-pri ~]# nmcli connection modify bridge-br0 ipv4.method manual ipv4.addresses 192.168.46.20/26 connection.autoconnect yes ipv4.gateway 192.168.46.1 ipv4.dns 192.168.32.10 ipv4.dns-search example.com
# Bring up bridge-br0 interface
[root@csah-pri ~]# nmcli connection up bridge-br0
[root@csah-pri ~]# systemctl restart NetworkManager
[root@csah-pri ~]# subscription-manager register --username <subscription.user> --password <subscription.password> --force
[root@csah-pri ~]# subscription-manager attach --pool=<pool id>
[root@csah-pri ~]# subscription-manager repos --enable=ansible-2.9-for-rhel-8-x86_64-rpms --enable=rhocp-4.6-for-rhel-8-x86_64-rpms
[root@csah-pri ~]# yum install -y jq ansible python3-netaddr git
Notes:
Do not use the username core. User core is part of the OpenShift Container Platform cluster configuration and is a predefined user in CoreOS. In the CSAH (primary/secondary), user core will be created using Ansible playbooks.
The remainder of this guide assumes that user ansible runs the playbooks.
[root@csah-pri ~]# useradd ansible
[root@csah-pri ~]# passwd ansible
Changing password for user ansible.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@csah-pri sudoers.d]# pwd
/etc/sudoers.d
[root@csah-pri sudoers.d]# cat ansible
ansible ALL=(ALL) NOPASSWD: ALL
[ansible@csah-pri ~]$ ssh-keygen (press enter and go by defaults for the next set of questions)
[ansible@csah-pri ~]$ ssh-copy-id <FQDN>
[ansible@csah-pri ~]$ git clone https://github.com/dell-esg/openshift-bare-metal.git
[ansible@csah-pri ~]$ cd <git clone dir>/openshift-bare-metal[ansible@csah-pri openshift-bare-metal]$ git checkout origin/ocp46_rh8
Note: Ignore steps 8 through 10 if there is no secondary CSAH node.
Note: Install Red Hat Enterprise Linux 8 in a CSAH secondary node manually and repeat steps 3 through 6 with necessary modifications. Ignore steps 8 through 10 if there is no CSAH secondary node.
[root@csah-pri ~]# cat /etc/hosts
<IP Address of secondary csah> csah-sec csah-sec.demo.lab
[ansible@csah-pri ~]$ ssh-copy-id <secondary CSAH FQDN>