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
6 changes: 3 additions & 3 deletions ansible/roles/dnf/templates/epel.repo.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ name=Extra Packages for Enterprise Linux $releasever - $basearch
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/$releasever/Everything/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
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
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
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
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
gpgcheck=1
fastestmirror=0
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ apt_repositories:
suites: noble-security
components: main universe
# Treasuredata repository.
- url: http://packages.treasuredata.com/5/ubuntu/noble/
- url: https://packages.treasuredata.com/lts/5/ubuntu/noble
components: contrib
signed_by: td-agent.asc
apt_preferences:
Expand Down Expand Up @@ -178,8 +178,8 @@ dnf_epel_mirror_host: "{{ zuul_site_mirror_fqdn }}"
dnf_epel_mirror_directory: 'epel'
# Configure a custom DNF repository.
dnf_custom_repos:
td-agent:
baseurl: http://packages.treasuredata.com/4/redhat/$releasever/$basearch
fluent-package:
baseurl: https://packages.treasuredata.com/lts/5/redhat/$releasever/$basearch
gpgkey: https://packages.treasuredata.com/GPG-KEY-td-agent
gpgcheck: yes
# Install EPEL local mirror.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ def test_apt_preferences(host):
@pytest.mark.skipif(not _is_apt(), reason="Apt only supported on Ubuntu")
def test_apt_custom_package_repository_is_available(host):
with host.sudo():
host.check_output("apt -y install td-agent")
assert host.package("td-agent").is_installed
host.check_output("apt -y install fluent-package")
assert host.package("fluent-package").is_installed


@pytest.mark.skipif(not _is_apt(), reason="Apt only supported on Ubuntu")
Expand All @@ -246,7 +246,7 @@ def test_apt_auth(host):

@pytest.mark.parametrize('repo', ["appstream", "baseos", "extras", "epel"])
@pytest.mark.skipif(not _is_dnf_mirror(),
reason="DNF OpenDev mirror only for CentOS 8")
reason="DNF OpenDev mirror only for CentOS Stream 9")
def test_dnf_local_package_mirrors(host, repo):
# Depends on SITE_MIRROR_FQDN environment variable.
assert os.getenv('SITE_MIRROR_FQDN')
Expand All @@ -261,8 +261,8 @@ def test_dnf_local_package_mirrors(host, repo):
@pytest.mark.skipif(not _is_dnf(), reason="DNF only supported on CentOS/Rocky")
def test_dnf_custom_package_repository_is_available(host):
with host.sudo():
host.check_output("dnf -y install td-agent")
assert host.package("td-agent").is_installed
host.check_output("dnf -y install fluent-package")
assert host.package("fluent-package").is_installed


@pytest.mark.skipif(not _is_dnf(), reason="DNF only supported on CentOS/Rocky")
Expand Down
6 changes: 6 additions & 0 deletions releasenotes/notes/bug-2119921-b23dc13147e6bda4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Fixes wrong name of ``gpgkey`` used for EPEL repositories when
``dnf_use_local_mirror`` is enabled.
`LP#2119921 <https://bugs.launchpad.net/kayobe/+bug/2119921>`__
2 changes: 1 addition & 1 deletion zuul.d/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
- kayobe-seed-rocky9-podman
- kayobe-seed-ubuntu-noble
- kayobe-seed-ubuntu-noble-podman
- kayobe-seed-images-rocky9
- kayobe-seed-upgrade-rocky9
- kayobe-seed-upgrade-ubuntu-noble
- kayobe-seed-upgrade-slurp-rocky9
Expand Down Expand Up @@ -76,6 +75,7 @@
- kayobe-overcloud-centos9s
- kayobe-overcloud-host-configure-centos9s
- kayobe-seed-images-centos9s
- kayobe-seed-images-rocky9
- kayobe-seed-images-rocky9-podman
- kayobe-seed-images-ubuntu-noble
- kayobe-seed-images-ubuntu-noble-podman