From 4ed632ae9ae7b1455e2e3d07d3c5bbb5ca494b38 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Sat, 28 Oct 2023 18:59:38 +0200 Subject: [PATCH] HACK - disable gpgcheck on el9 --- manifests/repo/nodesource/yum.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/repo/nodesource/yum.pp b/manifests/repo/nodesource/yum.pp index e98e4859..31f21de4 100644 --- a/manifests/repo/nodesource/yum.pp +++ b/manifests/repo/nodesource/yum.pp @@ -29,13 +29,21 @@ $module_hotfixes = undef } + # THIS IS A HACK, DON'T MERGE WHILE THIS IS STILL IN PLACE + if $facts['os']['release']['major'] == '9' { + $gpgcheck = '0' + } else { + $gpgcheck = '1' + } + # FIXME: REMOVE ABOVE HACK + yumrepo { 'nodesource': descr => $descr, baseurl => $baseurl, enabled => '1', failovermethod => $yum_failovermethod, gpgkey => 'file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL', - gpgcheck => '1', + gpgcheck => $gpgcheck, module_hotfixes => $module_hotfixes, priority => $priority, proxy => $proxy,