| | |
| | | - name: Add Quay Image Pull Secret for Eurotech Images |
| | | shell: "oc create -f /tmp/{{guid}}/redhat-iot-rhpds-secret.yml -n {{ocp_project}}" |
| | | |
| | | - name: Add Quay Image Pull Secret for Eurotech Images |
| | | shell: "oc secrets link default redhat-iot-rhpds-pull-secret --for=pull -n {{ocp_project}}" |
| | | |
| | | - name: Add MariaDB Secret |
| | | shell: "oc create secret generic ec-db --from-literal=name=ecdb --from-literal=username=redhat --from-literal=password=RedHat123 -n {{ocp_project}}" |
| | | |
| | |
| | | shell: "oc new-app -f /tmp/{{guid}}/dashboard.yml -p 'BROKER_HOSTNAME=ec-broker-ws-{{ocp_project}}' -p 'BROKER_PASSWORD=ec-password' -p 'BROKER_USERNAME=ec-sys' -p 'DASHBOARD_PROXY_HOSTNAME=dashboard-proxy-{{ocp_project}}'" |
| | | |
| | | - name: Deploy virtual gateway |
| | | shell: "oc new-app quay.io/redhat-iot/kura-emulator:latest" |
| | | shell: "oc new-app quay.io/redhat-iot/esf:5.2.0-DEMO" |
| | | |
| | | - name: Print Kura Virtual Gateway URL |
| | | - name: Print ESF Virtual Gateway URL |
| | | debug: |
| | | msg: "user.info: Kura Virtual Gateway: http://kura-emulator-{{ocp_project}}.{{ocp_apps_domain}}" |
| | | msg: "user.info: ESF Virtual Gateway: http://esf-{{ocp_project}}.{{ocp_apps_domain}}" |
| | | |
| | | - name: Expose virtual gateway web ui |
| | | shell: "oc expose svc/kura-emulator" |
| | | shell: "oc expose svc/esf" |
| | | |
| | | - name: Annotate the completed project as requested by user |
| | | shell: "oc annotate namespace {{ocp_project}} openshift.io/requester={{ocp_username}} --overwrite" |