From 4fa73d3a3ed6d8f6774ac56214514d1f14e99568 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 19 Oct 2023 10:24:20 +0200 Subject: [PATCH] set module_hotfixes=true on EL8+ to be able to install from nodesource --- manifests/repo/nodesource/yum.pp | 50 ++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/manifests/repo/nodesource/yum.pp b/manifests/repo/nodesource/yum.pp index d45f7b13..be31b8e6 100644 --- a/manifests/repo/nodesource/yum.pp +++ b/manifests/repo/nodesource/yum.pp @@ -31,34 +31,40 @@ owner => 'root', source => "puppet:///modules/${module_name}/repo/dnf/nodejs.module", } + + $module_hotfixes = true + } else { + $module_hotfixes = undef } yumrepo { 'nodesource': - descr => $descr, - baseurl => $baseurl, - enabled => '1', - failovermethod => $yum_failovermethod, - gpgkey => 'file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL', - gpgcheck => '1', - priority => $priority, - proxy => $proxy, - proxy_password => $proxy_password, - proxy_username => $proxy_username, - require => File['/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL'], + descr => $descr, + baseurl => $baseurl, + enabled => '1', + failovermethod => $yum_failovermethod, + gpgkey => 'file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL', + gpgcheck => '1', + module_hotfixes => $module_hotfixes, + priority => $priority, + proxy => $proxy, + proxy_password => $proxy_password, + proxy_username => $proxy_username, + require => File['/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL'], } yumrepo { 'nodesource-source': - descr => $source_descr, - baseurl => $source_baseurl, - enabled => $yum_source_enabled, - failovermethod => $yum_failovermethod, - gpgkey => 'file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL', - gpgcheck => '1', - priority => $priority, - proxy => $proxy, - proxy_password => $proxy_password, - proxy_username => $proxy_username, - require => File['/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL'], + descr => $source_descr, + baseurl => $source_baseurl, + enabled => $yum_source_enabled, + failovermethod => $yum_failovermethod, + gpgkey => 'file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL', + gpgcheck => '1', + module_hotfixes => $module_hotfixes, + priority => $priority, + proxy => $proxy, + proxy_password => $proxy_password, + proxy_username => $proxy_username, + require => File['/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL'], } file { '/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL':