Enable the Ubuntu cloud archive

Enable the Ubuntu cloud archive which is required for precise and (for
non-Icehouse releases) also for trusty.

Change-Id: Ief291f70cf60c434c3a8624461760ed9a2f38c0f
This commit is contained in:
Roger Luethi 2014-12-28 16:46:32 +01:00
parent c0a6c50ecf
commit fc95c10a3b
2 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,8 @@
# This file contains OpenStack configuration data. It is used by both
# host (osbash, Windows batch) and VM guest scripts.
# one of: folsom, grizzly, havana, icehouse
: ${OPENSTACK_RELEASE:=icehouse}
# one of: icehouse, juno
: ${OPENSTACK_RELEASE:=juno}
# CirrOS image URL
CIRROS_URL="http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img"

View File

@ -50,6 +50,9 @@ function ubuntu_cloud_archive {
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
}
if grep -qs DISTRIB_CODENAME=precise /etc/lsb-release; then
# precise needs the cloud archive, and so does trusty for non-Icehouse releases
if grep -qs DISTRIB_CODENAME=precise /etc/lsb-release ||
[ "$OPENSTACK_RELEASE" != "icehouse" ]; then
echo "Enabling the Ubuntu cloud archive."
ubuntu_cloud_archive
fi