diff --git a/playbooks/roles/reprepro/files/debian-docker-jammy/config/distributions b/playbooks/roles/reprepro/files/debian-docker-jammy/config/distributions new file mode 100755 index 0000000000..0f02ce1d9e --- /dev/null +++ b/playbooks/roles/reprepro/files/debian-docker-jammy/config/distributions @@ -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 + diff --git a/playbooks/roles/reprepro/files/debian-docker-jammy/config/options b/playbooks/roles/reprepro/files/debian-docker-jammy/config/options new file mode 100755 index 0000000000..387855d15f --- /dev/null +++ b/playbooks/roles/reprepro/files/debian-docker-jammy/config/options @@ -0,0 +1,6 @@ +basedir /afs/.openstack.org/mirror/deb-docker/jammy +keepunreferencedfiles +noskipold +export changed +spacecheck none +verbose diff --git a/playbooks/roles/reprepro/files/debian-docker-jammy/config/updates b/playbooks/roles/reprepro/files/debian-docker-jammy/config/updates new file mode 100755 index 0000000000..427f2a59ff --- /dev/null +++ b/playbooks/roles/reprepro/files/debian-docker-jammy/config/updates @@ -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 diff --git a/playbooks/roles/reprepro/tasks/docker.yaml b/playbooks/roles/reprepro/tasks/docker.yaml index 82647b4e28..721fbf9d70 100644 --- a/playbooks/roles/reprepro/tasks/docker.yaml +++ b/playbooks/roles/reprepro/tasks/docker.yaml @@ -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) }}'