Skip to content

dell-esg/openshift-bare-metal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Master branch is updated with OCP46 contents

For OCP 43 CSI contents - Refer to https://github.com/dell-esg/openshift-bare-metal and checkout branch ocp43_csi
$ python3 generate_inventory_file.py -h
usage: generate_inventory_file.py [-h] [--run | --add] --ver {4.6} --nodes NODES [--id_user ID_USER] [--id_pass ID_PASS] [--debug]

Generate Inventory

optional arguments:
  -h, --help         show this help message and exit
  --run              generate inventory file
  --add              number of worker nodes
  --ver {4.6}        specify OpenShift version
  --nodes NODES      nodes inventory file
  --id_user ID_USER  specify idrac user
  --id_pass ID_PASS  specify idrac user
  --debug            specify debug logs
  • run option will generate inventory file
  • add option will add new worker nodes to an already existing inventory file.
  • ver option will specify OpenShift version. Current supported version is 4.6 only.
  • nodes option is a YAML file with nodes information. Note: Refer to sample file under /python/nodes.yaml
  • specify common idrac user and password using --id_user and --id_pass arguments. Note: Ignore --id_user and --id_pass arguments when it is not same across all nodes.
  • debug enables logging.debug level for the execution

Switch Config

  • Switches S3048, S5232F config files are saved in examples directory
  • S5232F x 2 configured in VLTi
  • S3048 used for iDRAC purposes

Python Script - Pre-Reqs

  • RHEL OS (Tested in 7.9)
  • Python3
  • access to appropriate repositories. Refer to deployment guide Chapter 3.

Python Script - Output

  • An inventory file used by ansible to execute roles defined in ocp.yml
  • Script log file (Inventory.log by default)

Ansible Playbooks - Pre-Reqs

  • RedHat subscription (to download ansible rpm and pullsecret for OCP 4.6)
  • Inventory File (generated using python script)

Ansible Playbooks - Execution

  • cd git clone dir/containers/ansible
  • ansible-playbook -i 'Path to inventory file path generated using python script' ocp.yml

Ansible Playbooks - Output

  • Services such as DNS/DHCP/PXE/TFTP/HAProxy are configured in local node using the inventory file generated.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •