Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions ansible/roles/dnf/templates/epel.repo.j2
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{% set epel_version = '$releasever${releasever_minor:+.$releasever_minor}' if os_distribution == 'rocky' and os_release == '10' else '$releasever' %}
[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/$releasever/Everything/$basearch
name=Extra Packages for Enterprise Linux {{ epel_version }} - $basearch
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/{{ epel_version }}/Everything/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
fastestmirror=0

[epel-debuginfo]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/$releasever/Everything/$basearch/debug
name=Extra Packages for Enterprise Linux {{ epel_version }} - $basearch - Debug
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/{{ epel_version }}/Everything/$basearch/debug
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
gpgcheck=1
fastestmirror=0

[epel-source]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/$releasever/Everything/SRPMS
name=Extra Packages for Enterprise Linux {{ epel_version }} - $basearch - Source
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/{{ epel_version }}/Everything/SRPMS
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
gpgcheck=1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
fixes:
- |
Fixes paths to EPEL repositories on Rocky Linux. Previously, they were only
using the major version ``$releasever`` which could point to an
incompatible repository. They now use both major and minor versions, e.g.
``10.2`` instead of ``10``. There is no change on CentOS Stream which uses
only the major version.
`LP#2156407 <https://bugs.launchpad.net/kayobe/+bug/2156407>`__