modified the bundle to use the public end point if assigned. 31/16131/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Wed, 29 Jun 2016 17:49:49 +0000 (12:49 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Wed, 29 Jun 2016 17:50:26 +0000 (12:50 -0500)
Change-Id: I3bf11b14af61e8dc31589a130faad179d06e0c37
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/01-deploybundle.sh
ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml
ci/odl/juju-deployer/ovs-odl-ha.yaml
ci/onos/juju-deployer/ovs-onos-ha.yaml

index 7748b00..08f539b 100755 (executable)
@@ -66,6 +66,8 @@ if [ -e ~/.juju/deployment.yaml ]; then
       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@#use-internal-endpoints: true@use-internal-endpoints: true@g" ./bundles.yaml
+          sed --i "s@#endpoint-type: internalURL@endpoint-type: internalURL@g" ./bundles.yaml
           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
index 680441b..4f0c0a2 100644 (file)
@@ -13,7 +13,7 @@ trusty-mitaka-nodes:
     #ceph-osd-replication-count: 2
     admin-role: admin
     keystone-admin-role: admin
-    use-internal-endpoints: true
+    #use-internal-endpoints: true
     #os-public-hostname: pod.maas
 
 trusty-mitaka:
@@ -68,7 +68,7 @@ openstack-phase1:
         secret: admin
         webroot: /
         vip: 10.4.1.11
-        endpoint-type: internalURL
+        #endpoint-type: internalURL
       to:
         - "lxc:nodes=3"
         - "lxc:nodes=4"
index 80dc855..96f9365 100644 (file)
@@ -1,9 +1,6 @@
 # vim: set ts=2 et:
 trusty-mitaka-nodes:
   inherits: openstack-phase1
-
-trusty-mitaka:
-  inherits: openstack-phase2
   overrides:
     #os-data-network: 10.4.8.0/21
     #ceph-cluster-network: 10.4.0.0/21
@@ -16,9 +13,12 @@ trusty-mitaka:
     #ceph-osd-replication-count: 2
     admin-role: admin
     keystone-admin-role: admin
-    use-internal-endpoints: true
+    #use-internal-endpoints: true
     #os-public-hostname: pod.maas
 
+trusty-mitaka:
+  inherits: openstack-phase2
+
 openstack-phase1:
   services:
     nodes:
@@ -137,7 +137,7 @@ openstack-phase1:
       charm: local:trusty/openstack-dashboard
       num_units: 3
       options:
-        endpoint-type: internalURL
+        #endpoint-type: internalURL
         secret: admin
         vip: 10.4.1.11
         webroot: /
index aab64ea..8a3ba24 100644 (file)
@@ -1,9 +1,6 @@
 # vim: set ts=2 et:
 trusty-mitaka-nodes:
   inherits: openstack-phase1
-
-trusty-mitaka:
-  inherits: openstack-phase2
   overrides:
     #os-data-network: 10.4.8.0/21
     #ceph-cluster-network: 10.4.0.0/21
@@ -16,9 +13,12 @@ trusty-mitaka:
     #ceph-osd-replication-count: 2
     admin-role: admin
     keystone-admin-role: admin
-    use-internal-endpoints: true
+    #use-internal-endpoints: true
     #os-public-hostname: pod.maas
 
+trusty-mitaka:
+  inherits: openstack-phase2
+
 openstack-phase1:
   services:
     nodes:
@@ -126,7 +126,7 @@ openstack-phase1:
         secret: admin
         vip: 10.4.1.11
         webroot: /
-        endpoint-type: internalURL
+        #endpoint-type: internalURL
       to:
         - "lxc:nodes=2"
         - "lxc:nodes=3"