modfied to include the os qualified domain name for public API.
[joid.git] / ci / 01-deploybundle.sh
index 404dc21..2d35d48 100755 (executable)
@@ -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