case $distro in trusty) IMG_USER="ubuntu" IMG_URL="http://cloud-images.ubuntu.com/releases/14.04/release" IMG_NAME="ubuntu-14.04-server-cloudimg-${ARCH}-disk1.img" ;; xenial) IMG_USER="ubuntu" IMG_URL="http://cloud-images.ubuntu.com/releases/16.04/release" IMG_NAME="ubuntu-16.04-server-cloudimg-${ARCH}-disk1.img" ;; artful) IMG_USER="ubuntu" IMG_URL="http://cloud-images.ubuntu.com/releases/17.10/release" IMG_NAME="ubuntu-17.10-server-cloudimg-${ARCH}-disk1.img" ;; bionic) IMG_USER="ubuntu" IMG_URL="http://cloud-images.ubuntu.com/releases/18.04/release" IMG_NAME="ubuntu-18.04-server-cloudimg-${ARCH}.img" ;; centos6) IMG_USER="centos" IMG_URL="https://cloud.centos.org/centos/6/images" if [[ $arch = "amd64" ]]; then IMG_NAME="CentOS-6-x86_64-GenericCloud.qcow2" else echo "Cloud image not available!"; exit 1 fi ;; centos7) IMG_USER="centos" IMG_URL="https://cloud.centos.org/centos/7/images" if [[ $arch = "amd64" ]]; then IMG_NAME="CentOS-7-x86_64-GenericCloud.qcow2" else echo "Cloud image not available!"; exit 1 fi ;; fedora27) IMG_USER="fedora" if [[ $arch = "amd64" ]]; then IMG_URL="https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images/" IMG_NAME="Fedora-Cloud-Base-27-1.6.x86_64.qcow2" else echo "Cloud image not available!"; exit 1 fi ;; jessie) IMG_USER="debian" if [[ $arch = "amd64" ]]; then IMG_URL="https://cdimage.debian.org/cdimage/openstack/current-8" IMG_NAME="debian-8-openstack-amd64.qcow2" virt_ostype="debian" virt_osvariant="debian8" else echo "Cloud image not available!"; exit 1 fi ;; stretch) IMG_USER="debian" if [[ $arch = "amd64" ]]; then IMG_URL="https://cdimage.debian.org/cdimage/openstack/current-9" IMG_NAME="debian-9-openstack-amd64.qcow2" virt_ostype="debian" virt_osvariant="debian9" else echo "Cloud image not available!"; exit 1 fi ;; buster) IMG_USER="debian" if [[ $arch = "amd64" ]]; then IMG_URL="https://cdimage.debian.org/cdimage/openstack/current-10" IMG_NAME="debian-10-openstack-amd64.qcow2" virt_ostype="debian" virt_osvariant="debian10" else echo "Cloud image not available!"; exit 1 fi ;; *) echo "Cloud image not available!"; exit 1 ;; esac