Add support for xenial-backports

Our AFS mirrors now support xenial-backports[1].

[1] http://mirror.dfw.rax.openstack.org/ubuntu/dists/xenial-backports/

Change-Id: Idd355721a28595c7fcef7e17385f9cb893952801
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-05-26 20:23:31 -04:00
parent d4636cdcd1
commit df58489056
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -64,23 +64,12 @@ LSBDISTCODENAME=$(lsb_release -cs)
# NOTE(pabelanger): We don't actually have mirrors for ubuntu-precise, so skip
# them.
if [ "$LSBDISTID" == "Ubuntu" ] && [ "$LSBDISTCODENAME" != 'precise' ]; then
# NOTE(pabelanger): We only have a xenial mirror ATM because reprepro cannot
# mirror repositories with 0 packages. Once our reprepro mirrors is 100% we
# can remove this logic check. We are only missing -backports on the mirrors
if [ "$LSBDISTCODENAME" == "xenial" ] ; then
sudo dd of=/etc/apt/sources.list <<EOF
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME main universe
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-updates main universe
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-security main universe
EOF
else
sudo dd of=/etc/apt/sources.list <<EOF
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME main universe
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-updates main universe
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-backports main universe
deb $NODEPOOL_UBUNTU_MIRROR $LSBDISTCODENAME-security main universe
EOF
fi
sudo dd of=/etc/apt/sources.list.d/ceph-deb-hammer.list <<EOF
deb $NODEPOOL_CEPH_MIRROR $LSBDISTCODENAME main
EOF