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
Variable
Required
Default Value
config_template
yes
install-config
Options
aws-install-congfig
install-config
baremetal-install-config
ENV
Variable
Required
Default Value
install_type
no
default
management_hostname
yes
registry
cluster_name
yes
ocp
cluster_domain
yes
example.com
base_dir
yes
.
mac_prefix
no
aa:bb:cc
SECRETS
Variable
Required
Default Value
secrets_dir
yes
/secrets
REGISTRY
Variable
Required
Default Value
registry_dir
yes
/registry
registry_port
no
5000
NETWORKING INFRA
Variable
Required
Default Value
management_network
no
192.168.0
management_cidr
no
.0/24
machine_network
no
192.168.1
machine_cidr
no
.0/24
RHCOS_IMAGE_CACHE
Variable
Required
Default Value
rhcos_image_cache
no
/rhcos_images
rhcos_image_name
no
rhcos_bootstrap_image_sha
no
OPENSHIFT
Variable
Required
Default Value
cluster_configs_dir
yes
/clusterconfigs
network_type
no
OVNKubernetes
api_ip
no
.2
ingress_ip
no
.3
node_hostname_schema
no
ocp-node
NODES
Include as many items under nodes list as needed:
Variable
Required
Example Default Value
name
no
0
role
no
master
bmc_address
no
.4
net_address
no
.4
boot_mac
no
:dd:ee:8c
ten_gig_mac_2
no
:dd:ee:8d
ten_gig_mac_3
no
:dd:ee:8e
ten_gig_mac_4
no
:dd:ee:8f
NETWORKING
Include as many items under networking list as needed: