summaryrefslogtreecommitdiffstats
path: root/juju/configure-juju-on-openstack
diff options
context:
space:
mode:
Diffstat (limited to 'juju/configure-juju-on-openstack')
-rwxr-xr-xjuju/configure-juju-on-openstack7
1 files changed, 3 insertions, 4 deletions
diff --git a/juju/configure-juju-on-openstack b/juju/configure-juju-on-openstack
index 89a6d01f..ad357ce7 100755
--- a/juju/configure-juju-on-openstack
+++ b/juju/configure-juju-on-openstack
@@ -92,11 +92,10 @@ swift stat simplestreams
swift post simplestreams --read-acl .r:*
openstack service create --name product-stream --description "Product Simple Stream" product-streams
-SWIFT_URL=`openstack endpoint show object-store -c internalurl -f value`
-
-openstack endpoint create --region $OS_REGION_NAME --publicurl $SWIFT_URL/simplestreams/images \
- --internalurl $SWIFT_URL/simplestreams/images product-streams
+SWIFT_URL=`openstack endpoint list --service swift --interface internal -c URL -f value`
+openstack endpoint create --region $OS_REGION_NAME product-streams public $SWIFT_URL/simplestreams/images
+openstack endpoint create --region $OS_REGION_NAME product-streams internal $SWIFT_URL/simplestreams/images
#Output a juju cloud file that works on this cloud
echo "clouds: