Installing the capabilities by running the deployment script
Depending on the capabilities that you want to install, the deployment script prepares the environment and then installs the selected automation containers.
Before you begin
The following information is needed before you run the script.
- A list of the capabilities that you want to install.
- A key for the IBM® Entitled Registry.
- The route hostname. You can run the following command to get the
name.
oc get route console -n openshift-console -o yaml|grep routerCanonicalHostname - Storage class name for block storage provisioned.
About this task
To install the capabilities, a non-administrator user can run the deployment script. The script applies a custom resource (CR) file, which is deployed by the Cloud Pak operator. The deployment script prompts the user to enter values to get access to the container images and to select what is installed with the deployment.
Procedure
Results
The operator reconciliation loop can take some time. You must verify that the automation containers are running.
smallCloud Pak foundational services deployment is used. For more information about the sizing for foundational services, see Deployment profiles
What to do next
To verify that your deployment is up and running:
- Monitor the status of your pods from the command line. Using the OpenShift CLI:
oc get pods -w - When all the pods have
Conditions: Ready,PrereqReady, orRunning, then you start to use your starter environment. You can access the status of your services with the following OCP CLI command.oc status
- Go to the
cert-kubernetesdirectory on your local machine.cd cert-kubernetes - Log in to the cluster with the non-administrator user. Using the OpenShift CLI.
oc login -u cp4a-user -p cp4a-pwd - Look for the status field of each capability by running the
oc getcommand.oc get ICP4ACluster <instance_name> -o=jsonpath='{.status.components.<component_id>}'Note: If you selected "Content Cortex" with no other capabilities, then theKindparameter is set toContentinstead ofICP4ACluster.oc get Content <instance_name> -o=jsonpath='{.status.components.<component_id>}'Where the <component_id> can be any of the following ids:status: components: ae-icp4adeploy-workspace-aae viewone gitgatewayService css contentDesignerRepoAPI adsLtpaCreation adsCredentialsService workflow-authoring graphql adsRrRegistration adsRuntimeService ae-icp4adeploy-pbk app-engine contentProjectDeploymentService contentDesignerService adsGitService cmis adsParsingService bastudio ier adsRestApi adsBuildService navigator baw odm cpe iccsap tm adsFront adsRunService prereq adsRuntimeBaiRegistration resource-registry pfs adsDownloadService ca baml - Get the access information and the user credentials that you need to log in to the web
applications by running either of the following
commands:
oc get cm <instance_name>-cp4ba-access-info -o=jsonpath='{.data.<component_id>-access-info}'oc describe icp4acluster <instance_name> -n <namespace>Note: If you selected "Content Cortex" with no other capabilities, then theKindparameter is set toContentinstead ofICP4ACluster.oc describe Content <instance_name> -n <namespace>Note: Thebastudio-access-infosection provides access information for the Cloud Pak dashboard (Zen UI) and Business Automation Studio, which is installed by several patterns. The included URLs and credentials can be used to access the applications designers of the installed components.
After you have the routes and admin user information, check to see whether you need to do the following tasks.
Log in to the IBM Cloud Pak® Platform UI (Zen UI)
Business Automation Studio uses the Zen UI to provide a role-based user interface for all Cloud Pak capabilities. Capabilities are dynamically available in the UI based on the role of the user that logs in. The URL for the Zen UI is listed in the output of the post deployment script.
You have two options to log in, Enterprise LDAP and IBM
provided credentials (cpadmin only). To log in to the Admin Hub to configure the LDAP,
then click IBM provided credentials (cpadmin only). You can get the details for the IBM-provided cpadmin user by getting the contents of the
platform-auth-idp-credentials secret in the namespace used for the CP4BA
deployment.
oc -n <namespace> get secret platform-auth-idp-credentials -o jsonpath='{.data.admin_password}' | base64 -d && echo
If you want to log in using the configured LDAP, then click Enterprise
LDAP and enter the cp4admin user and the password in the
cp4ba-access-info ConfigMap. The cp4admin user has access to
Business Automation
Studio features.
If you want to add more users, you need to log in with the Zen UI administrator. The
kubeadmin user in the Red Hat® OpenShift authentication and the IBM-provided cpadmin user have the Zen UI administrator role.
When logged in, you can add users to the Automation Developer role to enable users
and user groups to access Business Automation Studio and work with business applications and
business automations. For more information about adding users, see
Completing post-deployment tasks for Business Automation Studio. For more information about
the Developer role, see User roles
.
If you included Content Cortex (CCx) without the other capabilities, then use the Navigator for CCx heading in the cp4ba-access-info ConfigMap and the custom resource status fields to find the route URL for Business Automation Navigator.
Use the LDAP user registry
The LDAP server has a set of predefined users and groups to use with your starter environment. Changes to the user repository are not persisted after a pod restart. To log in and view the users, follow these steps.
- Get the <deployment-name> of the deployment. The
<deployment-name> is the name of the metadata.name parameter in the CR that you installed. Using the OpenShift CLI.
oc get icp4aclusterNote: If you selected "Content Cortex" with no other capabilities, then theKindparameter is set toContentinstead ofICP4ACluster.oc get Content - The LDAP admin user is "
cn=admin,dc=example,dc=org". To get the LDAP admin password for the LDAP admin user, run the following OpenShift CLI command.oc get secret <deployment-name>-openldap-secret -o jsonpath="{.data.LDAP_ADMIN_PASSWORD}" | base64 -d - You can review the predefined users and groups with the following
command.
oc get secret <deployment-name>-openldap-customldif -o yamlTo provide a user for Task Manager, the following LDAP users and groups are created by the script.- User names:
cp4admin,user1,user2, up to and includinguser10. - Group names:
TaskAdmins,TaskUsers, andTaskAuditors.
The
cp4adminuser is assigned to "TaskAdmins". The LDAP usersuser1-user5are assigned to "TaskUsers", and the usersuser6-user10are assigned to "TaskAuditors". - User names:
- To modify an existing user's password:Note: Do not change the password of the cp4admin user after the Content Platform Engine (CPE) is initialized. Changing the password of the Domain admin user needs extra steps. For more information, see Update System User credentials
.- In the OpenShift console, go to , and
select the
icp4adeploy-openldap-customldifsecret. - Click .
- Change the password for a specified user and click Save.
- Go to , search for the "openldap" pod.
- In the overflow menu for the pod, click Delete Pod to restart it.
- In the OpenShift console, go to , and
select the
- To add a user:
- In the OpenShift console, go to , and
select the
icp4adeploy-openldap-customldifsecret. - Click .
- Copy and paste the attributes from an existing user, take out the unnecessary attributes, put
the information for the new user, and click Save. The following example is
for the user, "
newuser":dn: uid=newuser,dc=example,dc=org uid: newuser cn: newuser sn: newuser userPassword: <password> objectClass: top objectClass: posixAccount objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: person uidNumber: 14583345 gidNumber: 1456456 homeDirectory: /home/newuser/ mail: newuser@example.orgThe
uidNumbermust be a unique and different number from the existing uidNumbers. - Go to , search for the "openldap" pod.
- In the overflow menu for the pod, click Delete Pod to restart it.
- Sign in to the Common Web UI by following the steps in Accessing your cluster by using the console
. - Follow the steps in Managing console access
to add the user to the Cloud Pak
Platform UI (Zen).
- In the OpenShift console, go to , and
select the
- To add a group:
- In the Red Hat OpenShift console, go to , and
select the
icp4adeploy-openldap-customldifsecret. - Click .
- Copy and paste the attributes from an existing group, take out the unnecessary attributes, put
the information for the new group, and click Save.
The following example is for a group name of "
NewGroup".dn: cn=NewGroup,dc=example,dc=org objectClass: groupOfNames objectClass: top cn: NewGroup member: uid=user1,dc=example,dc=org member: uid=user2,dc=example,dc=org member: uid=user3,dc=example,dc=org member: uid=user4,dc=example,dc=org - Go to , and search for the openldap pod.
- In the overflow menu for the pod, click Delete Pod to restart it.
- Sign in to the Common Web UI by following the steps in Accessing your cluster by using the console
. - Follow the steps in Managing user groups
to add the group to the Cloud Pak
Platform UI (Zen).
- In the Red Hat OpenShift console, go to , and
select the
Create a storage policy and associate the Advanced Storage Area that was created during the deployment
- Create a storage policy and associate the storage policy with the existing advanced storage
area. See Storage policies
for more information. - Assign the newly created storage policy to an existing document class.
Enable GraphQL integrated development environments for Content Cortex
The GraphiQL integrated development environment is not enabled by default because of a security risk. If you want to include this capability in your starter environment, you can add the parameter to enable the IDE.
- Find the generated YAML file in the directory where you ran the deployment script. For example, generated-cr/ibm_cp4a_cr_final.yaml.
- Add the following parameter to the
file:
graphql: graphql_production_setting: enable_graph_iql: true - Apply the updated custom resource YAML file.
In the next reconciliation loop, the operator picks up the change, and includes GraphQL with your deployment.
Import sample data for Business Automation Insights
If you selected Business Automation Insights as an optional
component, then you can test and explore the component by importing sample data. For more
information, see https://github.com/icp4a/bai-data-samples
.
Enabling Business Automation Insights for Content Cortex
If you selected Business Automation Insights as an optional component and included the Content Event Emitter in your deployment, you must update the deployment to add the Kafka certificate to the trusted certificate list.
- Create a secret with your Kafka certificate, for
example:
oc create secret generic eventstreamsecret --from-file=tls.crt=eventstream.crt - Find the generated YAML file in the directory where you ran the deployment script. For example, generated-cr/ibm_cp4a_cr_final.yaml.
- Update the
trusted_certificate_listparameter to include the secret that you created.shared_configuration: trusted_certificate_list: ['eventstreamsecret']If other certificates are in the list, use a comma to separate your new entry.
- Apply the updated custom resource YAML file.
Verify the creation of the CDD repository for Content Designer
If you installed Content Cortex, use an ssh command line to go into the gitea-deploy pod to run the following command:
ls -l /data/git/repositories/content-designer/
If the output shows the cdd.git, then the content-designer directory exists and the Git repository is created successfully.
drwxr-xr-x 7 git git 147 May 5 15:58 cdd.git
If the output does not show the CDD repository, go to the operator logs to understand why the deployment failed.