From f4b6e62bc40e8e8c49f3f302b6af4a519a08e985 Mon Sep 17 00:00:00 2001
From: Jeremy Mordkoff <Jeremy.Mordkoff@riftio.com>
Date: Wed, 4 Oct 2017 12:05:41 -0400
Subject: [PATCH] trick the SO into thinking the public IP is local so that
 openidcprovider can reach the platform

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

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

diff --git a/installers/install_osm.sh b/installers/install_osm.sh
index 09e86be3..896eaefd 100755
--- a/installers/install_osm.sh
+++ b/installers/install_osm.sh
@@ -233,6 +233,13 @@ function configure(){
 config 
 openidc-provider-config rw-ui-client redirect-uri https://$DEFAULT_IP:8443/callback post-logout-redirect-uri https://$DEFAULT_IP:8443/
 EOF
+    lxc exec SO-ub -- tee /etc/network/interfaces.d/60-rift.cfg <<EOF
+auto lo:1
+iface lo:1 inet static 
+        address  $DEFAULT_IP
+        netmask 255.255.255.255
+EOF
+    lxc exec SO-ub ifup lo:1
 
 }
 
-- 
GitLab