Add Jammy Docker package mirroring

This adds package mirroring for Jammy Docker packages. One of the (I'm
sure) many steps to spin up Jammy in our CI environment.

Change-Id: I2c3fe6fed07ac36aa65b6f060012705ff940f69a
changes/22/839422/1
Clark Boylan 9 months ago
parent 39684a4b18
commit 4985d3f78c

@ -0,0 +1,10 @@
Origin: Docker
Codename: jammy
Description: Docker Jammy mirror
Architectures: amd64 arm64
Components: stable
UDebComponents:
Contents: .gz
Update: debian-docker
Log: /var/log/reprepro/debian-docker-jammy.log

@ -0,0 +1,6 @@
basedir /afs/.openstack.org/mirror/deb-docker/jammy
keepunreferencedfiles
noskipold
export changed
spacecheck none
verbose

@ -0,0 +1,7 @@
Name: debian-docker
Method: https://download.docker.com/linux/ubuntu/
Components: stable
UDebComponents: stable
Architectures: amd64 arm64
GetInRelease: no
VerifyRelease: F273FCD8

@ -23,11 +23,16 @@
vars:
_dir: 'debian-docker-focal'
- name: Copy Debian Docker Jammy config
include_tasks: utils/copy-config.yaml
vars:
_dir: 'debian-docker-jammy'
# Beacuse they all live on the same volume, run in order
- name: Install update cron jobs
cron:
name: 'Debian Docker reprepro mirror sync'
job: 'flock -n /var/run/reprepro/debian-docker.lock bash -c "for DISTRO in xenial bionic focal; do reprepro-mirror-update /etc/reprepro/debian-docker-\$DISTRO mirror.deb-docker >>/var/log/reprepro/debian-docker-\$DISTRO-mirror.log 2>&1; done"'
job: 'flock -n /var/run/reprepro/debian-docker.lock bash -c "for DISTRO in xenial bionic focal jammy; do reprepro-mirror-update /etc/reprepro/debian-docker-\$DISTRO mirror.deb-docker >>/var/log/reprepro/debian-docker-\$DISTRO-mirror.log 2>&1; done"'
state: present
hour: '*/2'
minute: '{{ 45 | random(seed=inventory_hostname) }}'

Loading…
Cancel
Save