Gareth Healy
2020-02-13 ddd690da5b82beeed683b6c5455e008b32e18cbd
ansible/roles/ocp4-workload-pam-fraudmanagement-workshop/tasks/workload_per_project_fuseworkload.yml
@@ -1,7 +1,7 @@
---
- name: Get Fuse template
  uri:
    url: "https://{{ gitea_route.stdout }}/gitadmin/pam-fraudmanagement/raw/branch/master/fuse/.openshiftio/application.yaml"
    url: "https://{{ gitea_route.stdout }}/{{ _namespace }}/pam-fraudmanagement/raw/branch/master/fuse/.openshiftio/application.yaml"
    method: GET
    body_format: json
    validate_certs: false
@@ -10,7 +10,7 @@
- name: Process Fuse workload template
  command: >
    oc process -f -
    oc process -p SOURCE_REPOSITORY_URL=http://mygitea.gitea.svc.cluster.local:3000/{{ _namespace }}/pam-fraudmanagement.git -p KAFKA_BROKERS={{ _namespace }}-cluster-kafka-brokers:9092 -f -
  args:
    stdin: "{{ fusetemplate.content | string }}"
  register: fusework
@@ -25,10 +25,6 @@
  command: >
    oc start-build BuildConfig/pam-fraudmanagement-fuse --wait -n "{{ _namespace }}"
#- name: Check Fuse workload is running
#  command: >
#    oc rollout status DeploymentConfig/pam-fraudmanagement-fuse --watch=true -n "{{ _namespace }}"
- name: todo
  debug:
    msg: "TODO: the workload needs to be told the kafka client svc, so the application.props can be a configmap/dynamic - once thats done, re-add above"
- name: Check Fuse workload is running
  command: >
    oc rollout status DeploymentConfig/pam-fraudmanagement-fuse --watch=true -n "{{ _namespace }}"