~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to juju/get-cloud-images

  • Committer: Narinder Gupta
  • Date: 2017-11-02 14:28:34 UTC
  • Revision ID: git-v1:1d9656d5db8d7e55e88e8aaa5ced95dbfdda113d
New lab added for arm64 bit.
modified as per comment from Alex for experimental basis.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
folder=/srv/data/
4
4
sudo mkdir $folder || true
5
5
 
 
6
NODE_ARCTYPE=`arch`
 
7
 
 
8
if  [ "ppc64le" == "$NODE_ARCTYPE" ]; then
 
9
    NODE_ARCHES="ppc64el"
 
10
elif [ "aarch64" == "$NODE_ARCTYPE" ]; then
 
11
    NODE_ARCHES="arm64"
 
12
else
 
13
    NODE_ARCHES="amd64"
 
14
fi
 
15
 
 
16
 
6
17
if grep -q 'virt-type: lxd' bundles.yaml; then
7
18
    URLS=" \
8
 
    http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-lxc.tar.gz \
9
 
    http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-root.tar.gz "
 
19
    http://download.cirros-cloud.net/daily/20161201/cirros-dl161201-$NODE_ARCTYPE-lxc.tar.gz \
 
20
    http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-$NODE_ARCHES-root.tar.gz "
10
21
 
11
22
else
12
23
    URLS=" \
13
 
    http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img \
14
 
    http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img \
 
24
    http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-$NODE_ARCHES-uefi1.img \
 
25
    http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-$NODE_ARCHES-uefi1.img \
15
26
    http://mirror.catn.com/pub/catn/images/qcow2/centos6.4-x86_64-gold-master.img \
16
27
    http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 \
17
 
    http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img "
 
28
    http://download.cirros-cloud.net/daily/20161201/cirros-dl161201-$NODE_ARCTYPE-disk.img "
18
29
fi
19
30
 
20
31
for URL in $URLS