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
This commit is contained in:
parent
39684a4b18
commit
4985d3f78c
10
playbooks/roles/reprepro/files/debian-docker-jammy/config/distributions
Executable file
10
playbooks/roles/reprepro/files/debian-docker-jammy/config/distributions
Executable file
@ -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
|
||||||
|
|
6
playbooks/roles/reprepro/files/debian-docker-jammy/config/options
Executable file
6
playbooks/roles/reprepro/files/debian-docker-jammy/config/options
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
basedir /afs/.openstack.org/mirror/deb-docker/jammy
|
||||||
|
keepunreferencedfiles
|
||||||
|
noskipold
|
||||||
|
export changed
|
||||||
|
spacecheck none
|
||||||
|
verbose
|
7
playbooks/roles/reprepro/files/debian-docker-jammy/config/updates
Executable file
7
playbooks/roles/reprepro/files/debian-docker-jammy/config/updates
Executable file
@ -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:
|
vars:
|
||||||
_dir: 'debian-docker-focal'
|
_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
|
# Beacuse they all live on the same volume, run in order
|
||||||
- name: Install update cron jobs
|
- name: Install update cron jobs
|
||||||
cron:
|
cron:
|
||||||
name: 'Debian Docker reprepro mirror sync'
|
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
|
state: present
|
||||||
hour: '*/2'
|
hour: '*/2'
|
||||||
minute: '{{ 45 | random(seed=inventory_hostname) }}'
|
minute: '{{ 45 | random(seed=inventory_hostname) }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user