~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to juju/get-cloud-images

  • Committer: Narinder Gupta
  • Date: 2016-07-27 14:32:35 UTC
  • Revision ID: git-v1:adb9288685ac205decce04a1d8eba4c9989bcc48
adding script to enable juju on openstack.

Change-Id: If259c8ad3530cc8d67499d406bd96abdd98b46f0
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -e
 
2
 
 
3
folder=/srv/data/
 
4
URLS="http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img \
 
5
http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img \
 
6
http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img \
 
7
http://mirror.catn.com/pub/catn/images/qcow2/centos6.4-x86_64-gold-master.img \
 
8
http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 \
 
9
http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img "
 
10
 
 
11
for URL in $URLS
 
12
do
 
13
FILENAME=${URL##*/}
 
14
if [ -f $folder/$FILENAME ];
 
15
then
 
16
    echo "$FILENAME already downloaded." 
 
17
else
 
18
    wget  -O  $folder/$FILENAME $URL
 
19
fi
 
20
done
 
21
 
 
22
echo "To download Windows image get there : https://cloudbase.it/windows-cloud-images/"