| | |
| | | --- |
| | | - 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 |
| | |
| | | |
| | | - 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 |
| | |
| | | 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 }}" |