This is a follow-on to I39cb9dc0aa52cf5b20545baf4acacc21c5459f2a; as
buster has no backports we need to skip this in the reprepro
configuration. It's a bit hacky, but we can revert when it is
available.
Change-Id: I60e231f23999d0af9c899a30822c71702befb2bd
The Packaging-deb team will be starting to publish packages to AFS.
This patch is the first step to allow that.
Change-Id: I9d8d5ce384a371042928587c0debf0da37352ad8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
It was removed in I0a12bc4cb67339a7566fb113bbbc897d4f112f50 by
mistake.
Change-Id: I42050405686364c30d825198d74077d121a349da
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Ubuntu isn't the only thing we want to mirror, we may also want to
mirror debian or ceph packages and so on. Refactor the puppet so that it
is easier to do this in a reconsumable way.
Change-Id: I0a12bc4cb67339a7566fb113bbbc897d4f112f50
We can't colocation debian and ubuntu - so allow for each having their
own pool independent pool structure.
Change-Id: I9fe0fa9769a5c0f6a852844b2db0dfb620e91375
In the current setup, the reprepro db and lists dirs are being written
into /root. Move them into AFS so that we store all the data in the same
place.
Also, update the script to point to the confdir for reprepro commands.
Note: This will require a manual move of the current db and lists dirs
from /root to /afs/.openstack.org/mirror/apt before this is run.
Change-Id: I2638621e6af98296704e680227fae174d8a0e541
The reprepro class in this is in-tree rather than in its own module
purely for ease of getting started. It's also highly hard-coded rather
than flexible.
This change will need a mirror.apt volume and service/reprepro principal
and keytab to be created before it lands.
Allow for pool trimming after a 2 hour delay. Each devstack run of
apt-get update should be able to be assumed to be valid for the length
of the devstack. For that reason, only delete files that are
unreferenced during the subsequent mirror run, ensuring at least a 2
hour delay between becoming unreferenced and going away.
Local testing indicates that a trusty mirror is 86G.
Change-Id: I84f6a0391f80e6bf567c4bfc18a41bd270fe8c01