diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-05-30 15:03:36 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-05-30 15:03:36 -0500 |
commit | d2d7586c4959bbb4db265fd8aa41519b595856db (patch) | |
tree | 9802bec43877bb1a8b1ed85741fdb3da3862da26 /juju/configure-juju-on-openstack | |
parent | a79062a98d941f186c83fcc47954d339c471632b (diff) |
modify openstack commands to use openstack tools.
Change-Id: I8ffebc25bc21e1c9d4c1121bbc9ea293d9d82fae
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'juju/configure-juju-on-openstack')
-rwxr-xr-x | juju/configure-juju-on-openstack | 7 |
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: |