# Preparing the execution environment for RHOCP worker3 node

Prerequisites:

Setting up RHEL 8.6 installer machine

This section assumes the following considerations for our deployment environment:

  • A server running Red Hat Enterprise Linux (RHEL) 8.6 exists within the deployment environment and is accessible to the installation user to be used as an installer machine. This server must have internet connectivity.
  • A virtual machine is used to act as an installer machine and the same host is utilized for creating the RHEL 7 installer machine and deploying the RHOCP cluster. We are using one of the worker3 machines as an installer machine to deploy the solution manually.

Prerequisites:

RHEL 8.6 installer machine must have the following configurations:

  1. The installer machine must have at least 500 GB disk space (especially in the "/" partition), 4 CPU cores, and 16 GB RAM.

  2. RHEL 8.6 installer machine must be subscribed with valid Red Hat credentials. To register the installer machine for the Red Hat subscription, run the following command:

$ sudo subscription-manager register --username=<username> --password=<password> --auto-attach
  1. SSH key pair must be available on the installer machine. If the SSH key pair is not available, generate a new SSH key pair with the following command:
$ ssh-keygen

To set up the installer machine:

  1. Create and activate Python3 virtual environment for deploying this solution with the following commands:
$ python3 -m venv <virtual_environment_name>
$ source <virtual_environment_name>/bin/activate
  1. Download the hpe-solutions-openshift/DL-LTI-Openshift/

  2. repositories from the Ansible Engine using the following commands:

$ mkdir /opt

$ cd /opt/

$ yum -y install git
$ git clone https://github.hpe.com/Solutions/ISV-OpenShift.git
  1. Set up the installer machine to configure the nginx, development tools, and other python packages. Navigate to the /opt/ hpe-solutions-openshift/DL-LTI-Openshift/ directory and run the following command:
$ sh setup.sh
  1. Download and copy RHEL 8.6 and RHEL 7.9 DVD ISO to /usr/share/nginx/html/ directory to create nginx service.

NOTE

For server type ProLiant DL365 Gen10 Plus, Bonding_Interface1 is eno5 and Bonding_Interface2 is eno6. For server type ProLiant DL365 Gen10 Plus , Bonding_Interface1 is ens2 and Bonding_Interface2 is ens3.

The output generates the input.yaml file and the hosts file in the same location.