Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.21 KB

File metadata and controls

71 lines (48 loc) · 2.21 KB

ocp-workload-rhte-mw-api-biz

NOTES

Common Lab Setup

  1. Using a version of oc utility that corresponds to your target OCP cluster, ensure oc utility is already authenticated as the cluster-admin: opentlc-mgr

  2. This workload only needs to be executed once per OCP cluster

  3. This workload provisions the following:

    1. A project rhdm into which the quoting decision manager is deployed.

    2. Imports templates for RH-SSO & Quoting apps.

Tenants

This workload can also create the nultiple tenants for the lab.

  1. Specify following values:

    1. specify ACTION="tenant_mgmt"

    2. specify START_TENANT and END_TENANT variables

  2. This workload provisions the following:

    1. An empty project userX-client

    2. A project userX-sso provisioned with RH SSO ephemeral deployment.

    3. A project userX-fuse-ignite provisioned with Syndesis

  3. In addition, the following changes are effected on the userX-gw project:

    1. Delete the default routes.

    2. Create staging and production routes for quote application.

    3. Resume deployment of staging and production apicast containers.

Execution using localhost oc client

WORKLOAD="ocp-workload-rhte-mw-api-biz"
SUBDOMAIN_BASE=`oc whoami --show-server | cut -d'.' -f 2,3,4,5 | cut -d':' -f 1`


# API manager provision
ansible-playbook -i localhost, -c local ./configs/ocp-workloads/ocp-workload.yml \
                    -e"ocp_workload=${WORKLOAD}" \
                    -e"ACTION=create" \
                    -e"subdomain_base=$SUBDOMAIN_BASE"


# Tenant management
START_TENANT=1
END_TENANT=1


# Tenant Management
ansible-playbook -i localhost, -c local ./configs/ocp-workloads/ocp-workload.yml \
                    -e"ocp_workload=${WORKLOAD}" \
                    -e"ACTION=tenant_mgmt" \
                    -e"start_tenant=$START_TENANT" \
                    -e"end_tenant=$END_TENANT" \
                    -e"subdomain_base=$SUBDOMAIN_BASE"


# Delete
REMOVE_TENANTS_ONLY=true
ansible-playbook -i localhost, -c local ./configs/ocp-workloads/ocp-workload.yml \
                    -e"ocp_workload=${WORKLOAD}" \
                    -e"ACTION=remove" \
                    -e"subdomain_base=$SUBDOMAIN_BASE" \
                    -e"REMOVE_TENANTS_ONLY=$REMOVE_TENANTS_ONLY"