From bb86beb241b5db328b962f5aa11739035b14830a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO <ynerant@crans.org> Date: Wed, 7 Jul 2021 19:31:45 +0200 Subject: [PATCH] [mirror] Proxmox 7 (bullseye) got released Signed-off-by: Yohann D'ANELLO <ynerant@crans.org> --- group_vars/mirror_backend.yml | 7 +++++-- roles/apt-mirror/templates/apt/mirror.list.j2 | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/group_vars/mirror_backend.yml b/group_vars/mirror_backend.yml index 809e5771..340828c9 100644 --- a/group_vars/mirror_backend.yml +++ b/group_vars/mirror_backend.yml @@ -82,7 +82,8 @@ glob_apt_mirror: scheme: https host: packages.grafana.com path: oss/deb - suite: stable + suite: + - stable components: - main - name: proxmox @@ -90,6 +91,8 @@ glob_apt_mirror: scheme: http host: download.proxmox.com path: debian/pve - suite: buster + suite: + - buster + - bullseye components: - pve-no-subscription diff --git a/roles/apt-mirror/templates/apt/mirror.list.j2 b/roles/apt-mirror/templates/apt/mirror.list.j2 index ace1136f..58b7a46b 100644 --- a/roles/apt-mirror/templates/apt/mirror.list.j2 +++ b/roles/apt-mirror/templates/apt/mirror.list.j2 @@ -1,3 +1,5 @@ +{{ ansible_header | comment }} + ############# config ################## # # set base_path /var/spool/apt-mirror @@ -15,7 +17,9 @@ set _tilde 0 ############# end config ############## {% for target in apt_mirror.targets %} -deb {{ target.scheme }}://{{ target.host }}/{{ target.path }} {{ target.suite }}{% for component in target.components %} {{ component }}{% endfor %} +{% for suite in target.suite %} +deb {{ target.scheme }}://{{ target.host }}/{{ target.path }} {{ suite }}{% for component in target.components %} {{ component }}{% endfor %} +{% endfor %} clean {{ target.scheme }}://{{ target.host }}/{{ target.path }} -- GitLab