summaryrefslogtreecommitdiffstats
path: root/ci/01-deploybundle.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-06-27 14:58:31 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-06-27 14:59:16 -0500
commitb58f01b1b21427d16bc9a991704884ef7421cc90 (patch)
tree57855f479212ac1cb8249c0f9c4497d420a2d17c /ci/01-deploybundle.sh
parent7c34d298ecd10989c94e2a08b1e073a20fadf349 (diff)
modfied to include the os qualified domain name for public API.
Change-Id: If169aab5f81fc0b6a112068066815e194f8f9e36 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/01-deploybundle.sh')
-rwxr-xr-xci/01-deploybundle.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh
index 404dc213..2d35d481 100755
--- a/ci/01-deploybundle.sh
+++ b/ci/01-deploybundle.sh
@@ -43,6 +43,11 @@ if [ -e ~/.juju/deployment.yaml ]; then
sed --i "s@10.4.1.1@$admnet@g" ./bundles.yaml
cephdisk=`grep "disk" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
sed --i "s@osd-devices: /srv@osd-devices: $cephdisk@g" ./bundles.yaml
+ osdomname=`grep "os-domain-name" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
+ if [ "$osdomname" != "''" ]; then
+ sed --i "s@#os-public-hostname: pod.maas@os-public-hostname: api.$osdomname@g" ./bundles.yaml
+ sed --i "s@#console-proxy-ip: pod.maas@console-proxy-ip: $osdomname@g" ./bundles.yaml
+ fi
fi
fi