Configure xenial-updates / xenial-backports on slaves now

Reprepro now as local repos for xenial-updates and xenial-backports on
our mirrors. Lets use them now.

Change-Id: Ic1dbb9cf7e041ecce1a872386e0e3ce15757e261
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-04-27 10:16:14 -05:00
parent f74b12d032
commit 926b0e62d6
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -53,10 +53,12 @@ LSBDISTCODENAME=$(lsb_release -cs)
if [ "$LSBDISTID" == "Ubuntu" ] ; 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.
# 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