= ocp4-workload-pam-fraudmanagement-workshop

Proactive Fraud Management with Case Management, Kafka and DMN Services

== Role overview

=== Deploy a Workload with the `ocp-workload` playbook [Mostly for testing]

----
TARGET_HOST="bastion.opentlc.com"
OCP_USERNAME="kubeadmin"
WORKLOAD="ocp4-workload-pam-fraudmanagement-workshop"

# a TARGET_HOST is specified in the command line, without using an inventory file
ansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \
    -e"ansible_user=replace-redhat.com" \
    -e"ansible_ssh_pass=replace" \
    -e"ocp_username=${OCP_USERNAME}" \
    -e"ocp_workload=${WORKLOAD}" \
    -e"namespace_prefix=user" \
    -e"user_count_start=1" \
    -e"user_count_end=2" \
    -e"ACTION=create"
----

=== To Delete an environment

----
TARGET_HOST="bastion.opentlc.com"
OCP_USERNAME="kubeadmin"
WORKLOAD="ocp4-workload-pam-fraudmanagement-workshop"

# a TARGET_HOST is specified in the command line, without using an inventory file
ansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \
    -e"ansible_user=replace-redhat.com" \
    -e"ansible_ssh_pass=replace" \
    -e"ocp_username=${OCP_USERNAME}" \
    -e"ocp_workload=${WORKLOAD}" \
    -e"namespace_prefix=user" \
    -e"user_count_start=1" \
    -e"user_count_end=2" \
    -e"ACTION=remove"
----