diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-07-26 00:05:54 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-07-27 09:32:35 -0500 |
commit | adb9288685ac205decce04a1d8eba4c9989bcc48 (patch) | |
tree | 454e694c473205c15b4477d8dafba1f005702a4c /juju/get-cloud-images | |
parent | b4f5b3523fe5740fb384856180d3c43f4faedc7d (diff) |
adding script to enable juju on openstack.
Change-Id: If259c8ad3530cc8d67499d406bd96abdd98b46f0
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'juju/get-cloud-images')
-rwxr-xr-x | juju/get-cloud-images | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/juju/get-cloud-images b/juju/get-cloud-images new file mode 100755 index 00000000..f31d067c --- /dev/null +++ b/juju/get-cloud-images @@ -0,0 +1,22 @@ +#!/bin/bash -e + +folder=/srv/data/ +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 " + +for URL in $URLS +do +FILENAME=${URL##*/} +if [ -f $folder/$FILENAME ]; +then + echo "$FILENAME already downloaded." +else + wget -O $folder/$FILENAME $URL +fi +done + +echo "To download Windows image get there : https://cloudbase.it/windows-cloud-images/" |