The playbooks are used for installation of OCP on Power and other post install customizations. The playbooks are used with the following projects 1 and 2
- A bastion/helper node is already created where the playbooks would run.
- The required services are configured on the bastion/helper node eg: HTTP, HAProxy, DNS, DHCP, etc.
- The cluster nodes are already created.
Make use of the sample file at examples/install_vars.yaml
. Modify the values as per your cluster.
cp examples/install_vars.yaml .
This section sets the variables for the install-config.yaml template file.
install_config:
cluster_domain: < Cluster domain name. Match to the baseDomain in install-config.yaml.>
cluster_id: < Cluster identifier. Match to the metadata.name in install-config.yaml.>
pull_secret: '<pull-secret json content>'
public_ssh_key: '<SSH public key content to access the cluster nodes>'
Below variables will be used by the OCP install playbook.
workdir: <Directory to use for creating OCP configs>
storage_type: <Storage type used in the cluster. Eg: nfs (Note: Currently NFS provisioner is not configured using this playbook. This variable is only used for setting up image registry to EmptyDir if storage_type is not nfs)>
log_level: <Option --log-level in openshift-install commands. Default is 'info'>
release_image_override: '<This is set to OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE while creating ign files. If you are using internal artifactory then ensure that you have added auth key to the pull_secret>'
rhcos_kernel_options: <List of kernel options for RHCOS nodes eg: ["slub_max_order=0","loglevel=7"]>
Make use of sample file at examples/inventory
. Modify the host values as per your cluster.
cp examples/inventory .
Once you have configured the vars & inventory file, run the install playbook using:
ansible-playbook -i inventory -e @install_vars.yaml playbooks/install.yaml
See LICENCE.txt