From 2059b39f539a63acbdbbf861e42816b87fe9a236 Mon Sep 17 00:00:00 2001
From: Jeremy Mordkoff <Jeremy.Mordkoff@riftio.com>
Date: Tue, 3 Oct 2017 17:34:10 -0400
Subject: [PATCH] update the RIFT web to accept the public IP

Signed-off-by: Jeremy Mordkoff <Jeremy.Mordkoff@riftio.com>

Change-Id: Ib0517677e938f65d4faa07d30d18d190373b909b
---
 installers/install_osm.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/installers/install_osm.sh b/installers/install_osm.sh
index ec115577..09e86be3 100755
--- a/installers/install_osm.sh
+++ b/installers/install_osm.sh
@@ -228,6 +228,12 @@ function configure(){
       --header 'content-type: application/vnd.yang.data+json' \
       --data '{"rw-ro-account:account": [ { "openmano": { "host": "'$RO_CONTAINER_IP'", "port": "9090", "tenant-id": "'$RO_TENANT_ID'"}, "name": "osmopenmano", "ro-account-type": "openmano" }]}')
     [[ $result =~ .*success.* ]] || FATAL "Failed resource-orchestrator configuration: $result"
+
+    lxc exec SO-ub -- /usr/rift/rift-shell -- rwcli --username admin --passwd admin  <<EOF
+config 
+openidc-provider-config rw-ui-client redirect-uri https://$DEFAULT_IP:8443/callback post-logout-redirect-uri https://$DEFAULT_IP:8443/
+EOF
+
 }
 
 function install_lxd() {
-- 
GitLab