The Dell EMC Ready Architecture for the Red Hat OpenShift Container Platform uses Red Hat Enterprise Linux (Red Hat Enterprise Linux) as the bare-metal operating system for all nodes. Setting up the bastion node involves obtaining the Red Hat Enterprise Linux 7.6 ISO image from the Red Hat customer portal and transferring it to the bastion node. For automated provisioning, copy the image content to the appropriate directories.
Follow these steps:
- Copy the Red Hat Enterprise Linux 7.6 ISO image to the bastion /root directory, mount ISO, and then copy the contents to /tftp/rhel/media/ by running the following commands:
mkdir -p /mnt/media
mount -o loop rhel-server-7.6-x86_64-dvd.iso /mnt/media
mkdir -p /tftp/rhel/media
cp -r * /tftp/rhel/media/
- On the bastion node, log in and git clone the github repo to /root/as follows:
git clone https://github.com/dell-esg/openshift-bare-metal/
- From the bastion node, run the Ansible script that creates iPXE, dnsmasq, and the tftp containerized resources used to install Red Hat Enterprise Linux 7.6 on the remaining servers:
- Run the docker ps command to verify that two Docker containers are running, which indicates that the setup was successful.
- Edit /etc/ansible/hosts file, remove the variable openshift_hostname=xxxx, and then run the remaining Ansible scripts for the remainder of the deployment.
Note: The Ansible script ipxe.yml requires the variable <openshift_hostname>. However, the remaining Ansible scripts do not accept the <openshift_hostname> variable in [NODES] section of the /etc/ansible/hosts file.