summaryrefslogtreecommitdiffstats
path: root/juju/get-cloud-images
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-08-17 16:50:51 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-08-17 20:23:44 -0500
commit268951640f0a1362d8a14052cb297968c3416ffb (patch)
tree323a13ec1f66923e8ecc2dd20ea3223baeb8e5e4 /juju/get-cloud-images
parent17b11a2fcb726451b06e69b533273d9d89ee6897 (diff)
modified to upload the cloud imaged for lxd containers for Xenial.
JIRA: JOID-95 Change-Id: Ia63befb9e63b15c8b5bba5cfddeac6714826eb8f Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'juju/get-cloud-images')
-rwxr-xr-xjuju/get-cloud-images10
1 files changed, 7 insertions, 3 deletions
diff --git a/juju/get-cloud-images b/juju/get-cloud-images
index bf2ed30b..162e4760 100755
--- a/juju/get-cloud-images
+++ b/juju/get-cloud-images
@@ -3,19 +3,23 @@
folder=/srv/data/
sudo mkdir $folder || true
-URLS="http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img \
+URLS=" \
+http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img \
http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img \
http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img \
http://mirror.catn.com/pub/catn/images/qcow2/centos6.4-x86_64-gold-master.img \
http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 \
-http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img "
+http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img \
+http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-lxc.tar.gz \
+http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-root.tar.gz "
+
for URL in $URLS
do
FILENAME=${URL##*/}
if [ -f $folder/$FILENAME ];
then
- echo "$FILENAME already downloaded."
+ echo "$FILENAME already downloaded."
else
wget -O $folder/$FILENAME $URL
fi