From 74575473c1a51898db67150cbf4617ab596eff69 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Wed, 3 Jul 2024 21:12:24 +1000 Subject: [PATCH] Fix: Update CentOS 7 mirrorlist to vault With CentOS 7 being EOL the mirrorlist URLs are archived and moved to CentOS vault. This impacts Jenkins minions configuration required for Sigul signing. As a workaround force vault use in yum repos config till this is resolved and new version of sigul client/server is available to use on the infrastructure. https://forums.centos.org/viewtopic.php?t=78708&start=30 https://forums.centos.org/viewtopic.php?t=80698 Issue: RELENG-5419 Change-Id: Ic193107a29aa83a2ee3c2cc356ca624522cc94f9 Signed-off-by: Anil Belur --- docker/Dockerfile | 3 +++ ...update-centos-mirros-for-sigul-af89f3ddee6d237a.yaml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 releasenotes/notes/update-centos-mirros-for-sigul-af89f3ddee6d237a.yaml diff --git a/docker/Dockerfile b/docker/Dockerfile index 06ccf769..53ad6150 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,6 +14,9 @@ gpgkey=https://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAG includepkgs=sigul* \n\ skip_if_unavailable=True' > /etc/yum.repos.d/fedora-infra-sigul.repo +RUN sed -i_ 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* || exit 1 +RUN sed -i_ 's@#baseurl=http://mirror.centos.org@baseurl=http://vault.centos.org@g' /etc/yum.repos.d/CentOS-* || exit 1 + RUN yum install -y -q sigul RUN mkdir -p /w/workspace && mkdir -p /home/jenkins diff --git a/releasenotes/notes/update-centos-mirros-for-sigul-af89f3ddee6d237a.yaml b/releasenotes/notes/update-centos-mirros-for-sigul-af89f3ddee6d237a.yaml new file mode 100644 index 00000000..ad535c81 --- /dev/null +++ b/releasenotes/notes/update-centos-mirros-for-sigul-af89f3ddee6d237a.yaml @@ -0,0 +1,17 @@ +--- +fixes: + - | + Fix: Update CentOS 7 mirrorlist to vault + + With CentOS 7 being EOL the mirrorlist URLs are archived + and moved to CentOS vault. + + This impacts Jenkins minions configuration required for + Sigul signing. + + As a workaround force vault use in yum repos config + till this is resolved and new version of sigul client/server + is available to use on the infrastructure. + + https://forums.centos.org/viewtopic.php?t=78708&start=30 + https://forums.centos.org/viewtopic.php?t=80698 -- 2.16.6