From 55d3e7dbba92684952891a6933565b704ac4a357 Mon Sep 17 00:00:00 2001 From: Chris Custine <ccustine@apache.org> Date: Fri, 07 Sep 2018 06:44:51 +0200 Subject: [PATCH] Change to ESF for virtual gateway --- ansible/roles/ocp-workload-iot-demo/defaults/main.yml | 2 +- ansible/roles/ocp-workload-iot-demo/tasks/workload.yml | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ansible/roles/ocp-workload-iot-demo/defaults/main.yml b/ansible/roles/ocp-workload-iot-demo/defaults/main.yml index 845af1d..1f7a9d4 100644 --- a/ansible/roles/ocp-workload-iot-demo/defaults/main.yml +++ b/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 diff --git a/ansible/roles/ocp-workload-iot-demo/tasks/workload.yml b/ansible/roles/ocp-workload-iot-demo/tasks/workload.yml index 949bffc..6c8c6ee 100644 --- a/ansible/roles/ocp-workload-iot-demo/tasks/workload.yml +++ b/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" -- Gitblit v1.9.3