Chris Custine
2018-09-07 55d3e7dbba92684952891a6933565b704ac4a357
Change to ESF for virtual gateway

Signed-off-by: Chris Custine <ccustine@apache.org>
2 files modified
13 ■■■■■ changed files
ansible/roles/ocp-workload-iot-demo/defaults/main.yml 2 ●●● patch | view | raw | blame | history
ansible/roles/ocp-workload-iot-demo/tasks/workload.yml 11 ●●●●● patch | view | raw | blame | history
ansible/roles/ocp-workload-iot-demo/defaults/main.yml
@@ -12,7 +12,7 @@
quota_limits_memory: '40Gi'
quota_configmaps: 10
quota_pods: 15
quota_pods: 25
quota_persistentvolumeclaims: 15
quota_services: 20
quota_secrets: 30
ansible/roles/ocp-workload-iot-demo/tasks/workload.yml
@@ -59,6 +59,9 @@
- 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}}"
@@ -124,14 +127,14 @@
  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"