summaryrefslogtreecommitdiffstats
path: root/juju/configure-juju-on-openstack
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-07-29 11:08:36 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-07-29 11:09:14 -0500
commit4a4a9d3d6aa663288696ce47370f0ec68aa8725f (patch)
treebaa5ae00137f6501786106943b2ba1f43b51968a /juju/configure-juju-on-openstack
parentc81c0df0ea34cab0d2d28842aaa857c02e5ec3c2 (diff)
modfieid to create contianer first then upload.
Change-Id: Ifdc95a2c50a47eb90a15c4b50053856ea321bed3 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'juju/configure-juju-on-openstack')
-rwxr-xr-xjuju/configure-juju-on-openstack7
1 files changed, 4 insertions, 3 deletions
diff --git a/juju/configure-juju-on-openstack b/juju/configure-juju-on-openstack
index 62ce885e..ff60d454 100755
--- a/juju/configure-juju-on-openstack
+++ b/juju/configure-juju-on-openstack
@@ -109,16 +109,17 @@ done
$SSH "juju metadata generate-tools -d juju-meta/ "
## upload images and tools streams to swift and make public
+$SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \
+ --os-tenant-name $OS_TENANT_NAME post -r '.r:*' juju-meta
+
$SSH "cd ~/juju-meta/ && swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME \
--os-password $OS_PASSWORD --os-tenant-name $OS_TENANT_NAME \
upload juju-meta images"
+
$SSH "cd ~/juju-meta/ && swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME \
--os-password $OS_PASSWORD --os-tenant-name $OS_TENANT_NAME \
upload juju-meta tools"
-$SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \
- --os-tenant-name $OS_TENANT_NAME post -r '.r:*' juju-meta
-
## collect the URL for getting the images
$($SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \
--os-tenant-name $OS_TENANT_NAME auth)