tasks/yumrepos: cope with archived Fedora releases

We have some hosts that run on archived/EOL Fedora releases, their
repository URLs need to reflect that.

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-03-10 15:24:23 +01:00 committed by nphilipp
parent baee0c839f
commit 280eebdcee
13 changed files with 66 additions and 48 deletions

View file

@ -1,7 +1,7 @@
[updates-testing-modular]
name=Fedora Modular $releasever - $basearch - Test Updates
failovermethod=priority
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/updates/testing/$releasever/Modular/$basearch/
baseurl=https://infrastructure.fedoraproject.org/pub{{ archive_if_archived }}/fedora/linux/updates/testing/$releasever/Modular/$basearch/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-modular-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
@ -10,7 +10,7 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
[updates-testing-modular-debuginfo]
name=Fedora Modular $releasever - $basearch - Test Updates Debug
failovermethod=priority
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/updates/$releasever/Modular/$basearch/debug/
baseurl=https://infrastructure.fedoraproject.org/pub{{ archive_if_archived }}/fedora/linux/updates/$releasever/Modular/$basearch/debug/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-modular-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
@ -19,7 +19,7 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
[updates-testing-modular-source]
name=Fedora Modular $releasever - Test Updates Source
failovermethod=priority
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/updates/$releasever/Modular/SRPMS/
baseurl=https://infrastructure.fedoraproject.org/pub{{ archive_if_archived }}/fedora/linux/updates/$releasever/Modular/SRPMS/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-modular-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1