Environment variables for silent mode installation
A silent installation of the Cloud Pak operator for either a starter or production deployment needs a minimum set of environment variables. The variables must be created before the cluster setup script is run.
The following example sets the environment variables that you need to install a production deployment on an OpenShift Container Platform.
export CP4BA_AUTO_PLATFORM="OCP"
export CP4BA_AUTO_DEPLOYMENT_TYPE="production"
export CP4BA_AUTO_NAMESPACE="silent-install"
export CP4BA_AUTO_CLUSTER_USER="username"
export CP4BA_AUTO_STORAGE_CLASS_OCP="managed-nfs-storage"
export CP4BA_AUTO_ENTITLEMENT_KEY="XXXXX"
| Parameters | Description | Example values |
|---|---|---|
| CP4BA_AUTO_CLUSTER_USER | Enter an existing user on an OCP or ROKS cluster. Typically, this user is the non-admin user that runs the deployment script. The user is given the required roles to install the Cloud Pak for Business Automation custom resource. | "username" |
| CP4BA_AUTO_DEPLOYMENT_TYPE | Valid values are: "starter" and "production". | "starter" |
| CP4BA_AUTO_ENTITLEMENT_KEY | The IBM entitlement key variable that is used to pull the images for OCP and ROKS platform
deployments. If you enter a value for the entitlement key, you do not need to set any of these parameters:
|
"XXXXXX" |
| CP4BA_AUTO_LOCAL_REGISTRY | The name of the image registry. | "hyc-cloud-private-daily-docker-local.artifactory.swg-devops.com" |
| CP4BA_AUTO_LOCAL_REGISTRY_PASSWORD | The password for the username. | "XXXXXX" |
| CP4BA_AUTO_LOCAL_REGISTRY_USER | The username to use to pull the images from the image registry. | "XXXX@example.com" |
| CP4BA_AUTO_NAMESPACE | The target namespace to deploy the Cloud Pak operator. | "my-namespace" |
| CP4BA_AUTO_PLATFORM | Valid values are: "ROKS" and "OCP". | "OCP" |
| CP4BA_AUTO_PUSH_IMAGE_LOCAL_REGISTRY | Local registry where you pushed the images. Valid values are: true or false. | true |
| CP4BA_AUTO_STORAGE_CLASS_FAST_ROKS | The storage class to use if CP4BA_AUTO_PLATFORM is set as "ROKS". | "cp4a-file-retain-gold-gid" |
| CP4BA_AUTO_STORAGE_CLASS_OCP | The storage class to use if CP4BA_AUTO_PLATFORM is set as "OCP". | "managed-nfs-storage" |