Install Predict Application¤
Prerequisites¤
You will need a Red Hat OpenShift cluster with IBM Maximo Application Suite Core v8.11 already installed, the mas_install_core playbook can be used to set this up.
Overview¤
This playbook will add Predict v8.9 to an existing IBM Maximo Application Suite Core installation. It will also install Cloud Pak for Data and CP4D services.
This playbook can be run against any OCP cluster regardless of its type; whether it's running in IBM Cloud, Azure, AWS, or your local datacenter.
- Install dependencies:
- Install CP4D (~1 1/2 hours)
- Install Watson Studio (~3 hours)
- Install Watson Machine Learning (~2 1/2 hours)
- Install Spark (~30 minutes)
- Install Predict application:
- Install application (~15 Minutes)
- Configure workspace (~30 Minutes)
All timings are estimates, see the individual pages for each of these playbooks for more information. Use this sample playbook as a starting point for installing any MAS application, just customize the application install and configure stages at the end of the playbook.
Required environment variables¤
MAS_INSTANCE_IDDeclare the instance ID for the MAS installMAS_CONFIG_DIRDirectory where generated config files will be saved (you may also provide pre-generated config files here)IBM_ENTITLEMENT_KEYYour IBM Entitlement key to access the IBM Container RegistryCPD_WSL_PROJECT_IDEnsure a Project ID Text box has a valid Watson Studio project ID. To obtain the project ID, navigate to CP4D/Watson Studio and create/reuse a project. Open the project and look into the browser URL, obtain the project ID from the URL and update the Project ID settings.CPD_WML_INSTANCE_IDSet Default value to "openshift"CPD_WML_URLSet Default value to "https://internal-nginx-svc.ibm-cpd.svc:12443" . ibm-cpd in the URL corresponds to the project name (namespace) of the CP4D installationCPD_PRODUCT_VERSION(Required) Cloud Pak for Data version installed in the cluster in 5.X format
These variables are required only if you set CPD_INSTALL_WSL to false in optional variables:
CPD_ADMIN_USERNAMECP4D UsernameCPD_ADMIN_PASSWORDCP4D PasswordCPD_ADMIN_URLCP4D Base URL
Warning
When not using this playbook to install Cloud Pak for Data it is important to ensure that your existing instance already has all the required services enabled.
Optional environment variables¤
CPD_INSTALL_PLATFORMTrue/False - If you HAVE CP4D already installed in your cluster you can skip this variable asFalseis set by defaultCPD_INSTALL_WSLTrue/False - If you HAVE Watson Studio already installed in your cluster you can skip this variable asFalseis set by defaultCPD_INSTALL_WMLTrue/False - If you HAVE Watson Machine Learning already installed in your cluster you can skip this variable asFalseis set by defaultCPD_INSTALL_SPARKTrue/False - If you HAVE Spark already installed in your cluster you can skip this variable asFalseis set by default
Usage¤
Tip
If you do not want to set up all the dependencies on your local system, you can run the playbook from inside the CLI container image: docker run -ti --pull always quay.io/ibmmas/cli
Cloud Pak for Data is already installed¤
export MAS_INSTANCE_ID=inst1
export MAS_CONFIG_DIR=~/masconfig
export IBM_ENTITLEMENT_KEY=xxx
export MAS_APP_CHANNEL="8.9.x"
export CPD_PRODUCT_VERSION="5.2.0"
export CPD_WSL_PROJECT_ID="xxxx"
export CPD_WML_INSTANCE_ID="openshift"
export CPD_WML_URL="https://internal-nginx-svc.ibm-cpd.svc:12443"
export CPD_ADMIN_USERNAME="cpadmin"
export CPD_ADMIN_PASSWORD="xxx"
export CPD_ADMIN_URL="https://mycp4durl"
oc login --token=xxxx --server=https://myocpserver
ansible-playbook ibm.mas_devops.mas_add_predict
Cloud Pak for Data is not installed¤
export MAS_INSTANCE_ID=inst1
export MAS_CONFIG_DIR=~/masconfig
export IBM_ENTITLEMENT_KEY=xxx
export MAS_APP_CHANNEL="8.9.x"
export CPD_PRODUCT_VERSION="5.2.0"
export CPD_INSTALL_PLATFORM="true"
export CPD_INSTALL_WSL="true"
export CPD_INSTALL_WML="true"
export CPD_INSTALL_SPARK="true"
export CPD_WSL_PROJECT_ID="xxxx"
export CPD_WML_INSTANCE_ID="openshift"
export CPD_WML_URL="https://internal-nginx-svc.ibm-cpd.svc:12443"
export CPD_ADMIN_USERNAME="cpadmin"
export CPD_ADMIN_PASSWORD="xxx"
export CPD_ADMIN_URL="https://mycp4durl"
oc login --token=xxxx --server=https://myocpserver
ansible-playbook ibm.mas_devops.mas_add_predict