Skip to content

ddreggors/ocp4-install-config-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OCP4 Install config helper

The idea of the OCP4 install config helper is simply to show how to automate the steps of customizing your install config. This is a POC tool and not a finished product. This helper also requires some gathering of info. You will need to have some things ready for the variables we use in the template.

  • Assumptions
    • You are working with AWS cloud provider
    • You are familiar with OpenShift install config file format and items
  • Requirements
    • base domain
    • cluser name
    • machineCIDR
    • aws region
    • OpenShift pull secret
    • A valid ssh public key (one that has matching private key in ~/.ssh)

Running the playbook

  • Using this playbook
    • Create a directory for install files
      mkdir -p install-files

    • Tell openshift to create the install-config
      openshift-install create install-config --dir install-files

    • Get the playbooks folder clned into the install-config directory
      cd install-files
      git clone https://github.com/ddreggors/ocp4-install-config-helper.git

    • Backup your original install-config.yaml
      mv -v {,original-}install-config.yaml

    • Edit the vars.yml, public_key.pub, and pull-secret.txt files (all under install-files/ocp4-install-config-helper/vars)

      • You will need to set the appropriate values in the vars.yaml file.
      • You will need to copy the contents of your public key (often ~/.ssh/id_rsa.pub) into the public_key.pub file
      • Finally you need to paste the contents of the downloaded pull secret into the pull-secret.txt file
    • To run the playbook as is and use the install-config.yaml

      • Make sure you are in the install-files directory
        sudo ansible-playbook ocp4-install-config-helper/install-helper.yaml
      • Once this playbook finishes you will have a new install-config.yaml file that will have all of your variables set properly in your install-files directory.
    • Finally we can use the new install-config as usual
      cd .. && openshift-install create cluster --dir=./install-files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published