Link Search Menu Expand Document

OCP Install Build Config Overview

Ocp-install-build-config is an Ansible role used to create the starting point for an install-config.yaml file to deploy OpenShift 4.x. It also includes completed examples to help model the final configuration file.

This role is used to create the starting point for a install-config.yaml file to deploy OpenShift 4.x. It also includes completed examples to help model the final configuration file.

Role Variables

CONFIG

VariableRequiredDefault Value
config_templateyesinstall-config
Options
aws-install-congfig
install-config
baremetal-install-config

ENV

VariableRequiredDefault Value
install_typenodefault
management_hostnameyesregistry
cluster_nameyesocp
cluster_domainyesexample.com
base_diryes.
mac_prefixnoaa:bb:cc

SECRETS

VariableRequiredDefault Value
secrets_diryes/secrets

REGISTRY

VariableRequiredDefault Value
registry_diryes/registry
registry_portno5000

NETWORKING INFRA

VariableRequiredDefault Value
management_networkno192.168.0
management_cidrno.0/24
machine_networkno192.168.1
machine_cidrno.0/24

RHCOS_IMAGE_CACHE

VariableRequiredDefault Value
rhcos_image_cacheno/rhcos_images
rhcos_image_nameno 
rhcos_bootstrap_image_shano 

OPENSHIFT

VariableRequiredDefault Value
cluster_configs_diryes/clusterconfigs
network_typenoOVNKubernetes
api_ipno.2
ingress_ipno.3
node_hostname_schemanoocp-node

NODES

Include as many items under nodes list as needed:

VariableRequiredExample Default Value
nameno0
rolenomaster
bmc_addressno.4
net_addressno.4
boot_macno:dd:ee:8c
ten_gig_mac_2no:dd:ee:8d
ten_gig_mac_3no:dd:ee:8e
ten_gig_mac_4no:dd:ee:8f

NETWORKING

Include as many items under networking list as needed:

VariableRequiredExample Default Value
namenobr1
iface_onenoeno3
iface_twonoeno4
bondnobond0
ip_addressno.151
ip_prefix_lengthno24

REDFISH

VariableRequiredExample Default Value
node_redfish_usernamenoredfish_user
node_redfish_passwordnoredfish_password

AWS

VariableRequiredDefault Value
rhcos_amiyesami-0db1ef3c6695fc441
aws_regionyesus-gov-west
deployer_nameyesexample
bill_codeyes0

Example Playbook

- hosts: localhost
  roles:
    - ocp-install-build-config

Detailed instructions for this role can be found at its Github repository:

https://github.com/CodeSparta/ocp-install-build-config