From 33e2997bca10388d94e5a3bdf0c800f4cd4ec68a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Sat, 28 Oct 2023 18:04:27 +0200 Subject: [PATCH] switch to using the nodistro nodesource repos the other ones do not contain the latest releases (e.g. 20.x contains 20.5 vs 20.9) --- .../nodesource/NODESOURCE-GPG-SIGNING-KEY-EL | 51 +++---- manifests/init.pp | 2 - manifests/params.pp | 2 - manifests/repo/nodesource.pp | 36 +---- manifests/repo/nodesource/apt.pp | 11 +- manifests/repo/nodesource/yum.pp | 27 ---- spec/classes/nodejs_spec.rb | 139 ++---------------- 7 files changed, 41 insertions(+), 227 deletions(-) diff --git a/files/repo/nodesource/NODESOURCE-GPG-SIGNING-KEY-EL b/files/repo/nodesource/NODESOURCE-GPG-SIGNING-KEY-EL index 6c53eb0d..f385c258 100644 --- a/files/repo/nodesource/NODESOURCE-GPG-SIGNING-KEY-EL +++ b/files/repo/nodesource/NODESOURCE-GPG-SIGNING-KEY-EL @@ -1,29 +1,30 @@ -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1 -mQINBFQCN9QBEADv5QYOlCWNkI/oKST/GGpQkOZjFY2cbYdHuc2j8kyM4oeNluXq -puEYMHOoQvbJ3DFPvsv+jCruL7qjkel9YzaF6e3RN2ystP4YBjxyOT7Bb5EnjNNU -6oScQJ50/+RmA4N3wzBrw5+x5KQGBfRU/k7JdDKO6SGY0zzdAo3jqp1nQ9Sf+Fmg -hsjDLVZTHorLPV3yPLb37QlvBB2YIRF+dL9l4wPAI/fGyWv+Qs7VlCZTyRAnKGbv -qN1LvlYoV9YqxaJYYJW+MQhn4706yNJAFeOZuKejEcnZTd/NBiAR91sVnsXKgW9e -yb4TZ7SqkmrJpuKJBpdPr1dgaK8dDmFh9Nlhpz6xZuYcKaDEDa5b3wymnixtwZf2 -WyboChIlsHDajtXZt34xP9uUge1VHyk1o8AQUzKEpuepxxLnyXArLgvHaLhQnxPA -bQB43b4RbWYHPdB16ki2WoZX/DA4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N/WIbtn5dqxppkV/YkO7GiJlp +Jlju9rf3kKUIQzKQWxFsbCAPIHoWv7rH9RSxgDithXtG6Yg5R1aeBbJaPNXL9wpJ +YBJbiMjkAFaz4B95FOqZm3r7oHugiCGsHX0AEQEAAYkBHwQYAQIACQUCV0M3UAIb +DAAKCRAvWbX5mxvgtE/OB/0VN88DR3Y3fuqy7lq/dthkn7Dqm9YXdorZl3L152eE +IF882aG8FE3qZdaLGjQO4oShAyNWmRfSGuoH0XERXAI9n0r8m4mDMxE6rtP7tHet +y/5M8x3CTyuMgx5GLDaEUvBusnTD+/v/fBMwRK/cZ9du5PSG4R50rtst+oYyC2ao +x4I2SgjtF/cY7bECsZDplzatN3gv34PkcdIg8SLHAVlL4N5tzumDeizRspcSyoy2 +K2+hwKU4C4+dekLLTg8rjnRROvplV2KtaEk6rxKtIRFDCoQng8wfJuIMrDNKvqZw +FRGt7cbvW5MCnuH8MhItOl9Uxp1wHp6gtav/h8Gp6MBa +=MARt -----END PGP PUBLIC KEY BLOCK----- diff --git a/manifests/init.pp b/manifests/init.pp index 1e361474..8952d3fa 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -15,14 +15,12 @@ Optional[String] $npmrc_auth = $nodejs::params::npmrc_auth, Optional[Hash] $npmrc_config = $nodejs::params::npmrc_config, $repo_class = $nodejs::params::repo_class, - $repo_enable_src = $nodejs::params::repo_enable_src, $repo_ensure = $nodejs::params::repo_ensure, $repo_pin = $nodejs::params::repo_pin, $repo_priority = $nodejs::params::repo_priority, $repo_proxy = $nodejs::params::repo_proxy, $repo_proxy_password = $nodejs::params::repo_proxy_password, $repo_proxy_username = $nodejs::params::repo_proxy_username, - Optional[String] $repo_release = $nodejs::params::repo_release, $repo_url_suffix = $nodejs::params::repo_url_suffix, Array $use_flags = $nodejs::params::use_flags, Optional[String] $package_provider = $nodejs::params::package_provider, diff --git a/manifests/params.pp b/manifests/params.pp index ff11fa3f..e385ee7a 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -3,14 +3,12 @@ $npmrc_config = undef $nodejs_debug_package_ensure = 'absent' $nodejs_package_ensure = 'installed' - $repo_enable_src = false $repo_ensure = 'present' $repo_pin = undef $repo_priority = 'absent' $repo_proxy = 'absent' $repo_proxy_password = 'absent' $repo_proxy_username = 'absent' - $repo_release = undef $repo_url_suffix = ($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7') ? { true => '16.x', default => '18.x', diff --git a/manifests/repo/nodesource.pp b/manifests/repo/nodesource.pp index ac8a52cf..da3b5f79 100644 --- a/manifests/repo/nodesource.pp +++ b/manifests/repo/nodesource.pp @@ -1,50 +1,18 @@ # PRIVATE CLASS: Do not use directly class nodejs::repo::nodesource { - $enable_src = $nodejs::repo_enable_src $ensure = $nodejs::repo_ensure $pin = $nodejs::repo_pin $priority = $nodejs::repo_priority $proxy = $nodejs::repo_proxy $proxy_password = $nodejs::repo_proxy_password $proxy_username = $nodejs::repo_proxy_username - $release = $nodejs::repo_release $url_suffix = $nodejs::repo_url_suffix case $facts['os']['family'] { 'RedHat': { - if $facts['os']['release']['major'] =~ /^[789]$/ { - $dist_version = $facts['os']['release']['major'] - $name_string = "Enterprise Linux ${dist_version}" - } - - # Fedora - elsif $facts['os']['name'] == 'Fedora' { - $dist_version = $facts['os']['release']['full'] - $name_string = "Fedora Core ${facts['os']['release']['full']}" - } - - # newer Amazon Linux releases - elsif ($facts['os']['name'] == 'Amazon') { - $dist_version = '7' - $name_string = 'Enterprise Linux 7' - } - - else { - fail("Could not determine NodeSource repository URL for operatingsystem: ${facts['os']['name']} operatingsystemrelease: ${facts['os']['release']['full']}.") - } - - $dist_type = $facts['os']['name'] ? { - 'Fedora' => 'fc', - default => 'el', - } - # nodesource repo - $descr = "Node.js Packages for ${name_string} - \$basearch" - $baseurl = "https://rpm.nodesource.com/pub_${url_suffix}/${dist_type}/${dist_version}/\$basearch" - - # nodesource-source repo - $source_descr = "Node.js for ${name_string} - \$basearch - Source" - $source_baseurl = "https://rpm.nodesource.com/pub_${url_suffix}/${dist_type}/${dist_version}/SRPMS" + $descr = "Node.js Packages - \$basearch" + $baseurl = "https://rpm.nodesource.com/pub_${url_suffix}/nodistro/nodejs/\$basearch" contain 'nodejs::repo::nodesource::yum' } diff --git a/manifests/repo/nodesource/apt.pp b/manifests/repo/nodesource/apt.pp index 13528a8a..6b0cded2 100644 --- a/manifests/repo/nodesource/apt.pp +++ b/manifests/repo/nodesource/apt.pp @@ -1,25 +1,20 @@ # PRIVATE CLASS: Do not use directly. class nodejs::repo::nodesource::apt { - $enable_src = $nodejs::repo::nodesource::enable_src $ensure = $nodejs::repo::nodesource::ensure $pin = $nodejs::repo::nodesource::pin - $release = $nodejs::repo::nodesource::release $url_suffix = $nodejs::repo::nodesource::url_suffix include apt if ($ensure != 'absent') { apt::source { 'nodesource': - include => { - 'src' => $enable_src, - }, key => { - 'id' => '9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280', - 'source' => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key', + 'id' => '6F71F525282841EEDAF851B42F59B5F99B1BE0B4', + 'source' => 'https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key', }, location => "https://deb.nodesource.com/node_${url_suffix}", pin => $pin, - release => $release, + release => 'nodistro', repos => 'main', } diff --git a/manifests/repo/nodesource/yum.pp b/manifests/repo/nodesource/yum.pp index be31b8e6..e98e4859 100644 --- a/manifests/repo/nodesource/yum.pp +++ b/manifests/repo/nodesource/yum.pp @@ -2,19 +2,11 @@ class nodejs::repo::nodesource::yum { $baseurl = $nodejs::repo::nodesource::baseurl $descr = $nodejs::repo::nodesource::descr - $enable_src = $nodejs::repo::nodesource::enable_src $ensure = $nodejs::repo::nodesource::ensure $priority = $nodejs::repo::nodesource::priority $proxy = $nodejs::repo::nodesource::proxy $proxy_password = $nodejs::repo::nodesource::proxy_password $proxy_username = $nodejs::repo::nodesource::proxy_username - $source_baseurl = $nodejs::repo::nodesource::source_baseurl - $source_descr = $nodejs::repo::nodesource::source_descr - - $yum_source_enabled = $enable_src ? { - true => '1', - default => '0', - } $yum_failovermethod = (versioncmp($facts['os']['release']['major'], '8') >= 0 and $priority == 'absent') ? { true => 'absent', @@ -52,21 +44,6 @@ 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', - 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': ensure => file, group => '0', @@ -81,10 +58,6 @@ ensure => 'absent', } - yumrepo { 'nodesource-source': - ensure => 'absent', - } - if versioncmp($facts['os']['release']['major'], '8') >= 0 { file { 'dnf_module': ensure => absent, diff --git a/spec/classes/nodejs_spec.rb b/spec/classes/nodejs_spec.rb index b77263d4..0fae5140 100644 --- a/spec/classes/nodejs_spec.rb +++ b/spec/classes/nodejs_spec.rb @@ -84,26 +84,6 @@ end end - context 'and repo_enable_src set to true' do - let :params do - default_params.merge!(repo_enable_src: true) - end - - it 'the repo apt::source resource should contain include => { src => true}' do - is_expected.to contain_apt__source('nodesource').with('include' => { 'src' => true }) - end - end - - context 'and repo_enable_src set to false' do - let :params do - default_params.merge!(repo_enable_src: false) - end - - it 'the repo apt::source resource should contain include => { src => false}' do - is_expected.to contain_apt__source('nodesource').with('include' => { 'src' => false }) - end - end - context 'and repo_pin set to 10' do let :params do default_params.merge!(repo_pin: '10') @@ -114,16 +94,6 @@ end end - context 'and repo_release set to stretch' do - let :params do - default_params.merge!(repo_release: 'stretch') - end - - it 'the repo apt::source resource should contain release = stretch' do - is_expected.to contain_apt__source('nodesource').with('release' => 'stretch') - end - end - context 'and repo_pin not set' do let :params do default_params.merge!(repo_pin: :undef) @@ -297,11 +267,8 @@ operatingsystemmajrelease = osversions[0] operatingsystem = 'CentOS' - dist_type = 'el' - repo_baseurl = "https://rpm.nodesource.com/pub_16.x/#{dist_type}/#{operatingsystemmajrelease}/$basearch" - repo_source_baseurl = "https://rpm.nodesource.com/pub_16.x/#{dist_type}/#{operatingsystemmajrelease}/SRPMS" - repo_descr = "Node.js Packages for Enterprise Linux #{operatingsystemmajrelease} - $basearch" - repo_source_descr = "Node.js for Enterprise Linux #{operatingsystemmajrelease} - $basearch - Source" + repo_baseurl = 'https://rpm.nodesource.com/pub_16.x/nodistro/nodejs/$basearch' + repo_descr = 'Node.js Packages - $basearch' context "when run on #{operatingsystem} release #{operatingsystemrelease}" do let :facts do @@ -359,66 +326,21 @@ is_expected.to contain_class('nodejs::repo::nodesource::yum') end - it 'the nodesource and nodesource-source repos should contain the right description and baseurl' do + it 'the nodesource repo should contain the right description and baseurl' do is_expected.to contain_yumrepo('nodesource').with( 'baseurl' => repo_baseurl, 'descr' => repo_descr ) - - is_expected.to contain_yumrepo('nodesource-source').with( - 'baseurl' => repo_source_baseurl, - 'descr' => repo_source_descr - ) - end - end - - context 'and repo_url_suffix set to 5.x' do - let :params do - default_params.merge!(repo_url_suffix: '5.x') - end - - it "the yum nodesource repo resource should contain baseurl = https://rpm.nodesource.com/pub_5.x/#{dist_type}/#{operatingsystemmajrelease}/$basearch" do - is_expected.to contain_yumrepo('nodesource').with('baseurl' => "https://rpm.nodesource.com/pub_5.x/#{dist_type}/#{operatingsystemmajrelease}/$basearch") end end - context 'and repo_enable_src set to true' do + context 'and repo_url_suffix set to 21.x' do let :params do - default_params.merge!(repo_enable_src: true) + default_params.merge!(repo_url_suffix: '21.x') end - it 'the yumrepo resource nodesource-source should contain enabled = 1' do - is_expected.to contain_yumrepo('nodesource-source').with('enabled' => '1') - end - end - - context 'and repo_enable_src set to false' do - let :params do - default_params.merge!(repo_enable_src: false) - end - - it 'the yumrepo resource should contain enabled = 0' do - is_expected.to contain_yumrepo('nodesource-source').with('enabled' => '0') - end - end - - context 'and repo_priority set to 50' do - let :params do - default_params.merge!(repo_priority: '50') - end - - it 'the yumrepo resource nodesource-source should contain priority = 50' do - is_expected.to contain_yumrepo('nodesource-source').with('priority' => '50') - end - end - - context 'and repo_priority not set' do - let :params do - default_params.merge!(repo_priority: 'absent') - end - - it 'the yumrepo resource nodesource-source should contain priority = absent' do - is_expected.to contain_yumrepo('nodesource-source').with('priority' => 'absent') + it 'the yum nodesource repo resource should contain baseurl = https://rpm.nodesource.com/pub_21.x/nodistro/nodejs/$basearch' do + is_expected.to contain_yumrepo('nodesource').with('baseurl' => 'https://rpm.nodesource.com/pub_21.x/nodistro/nodejs/$basearch') end end @@ -429,7 +351,6 @@ it 'the nodesource yum repo files should exist' do is_expected.to contain_yumrepo('nodesource') - is_expected.to contain_yumrepo('nodesource-source') end end @@ -440,7 +361,6 @@ it 'the nodesource yum repo files should not exist' do is_expected.to contain_yumrepo('nodesource').with('ensure' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('ensure' => 'absent') end end @@ -451,7 +371,6 @@ it 'the yumrepo resource should contain proxy = absent' do is_expected.to contain_yumrepo('nodesource').with('proxy' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('proxy' => 'absent') end end @@ -462,7 +381,6 @@ it 'the yumrepo resource should contain proxy = http://proxy.localdomain.com' do is_expected.to contain_yumrepo('nodesource').with('proxy' => 'http://proxy.localdomain.com') - is_expected.to contain_yumrepo('nodesource-source').with('proxy' => 'http://proxy.localdomain.com') end end @@ -473,7 +391,6 @@ it 'the yumrepo resource should contain proxy_password = absent' do is_expected.to contain_yumrepo('nodesource').with('proxy_password' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_password' => 'absent') end end @@ -484,7 +401,6 @@ it 'the yumrepo resource should contain proxy_password = password' do is_expected.to contain_yumrepo('nodesource').with('proxy_password' => 'password') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_password' => 'password') end end @@ -495,7 +411,6 @@ it 'the yumrepo resource should contain proxy_username = absent' do is_expected.to contain_yumrepo('nodesource').with('proxy_username' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_username' => 'absent') end end @@ -506,7 +421,6 @@ it 'the yumrepo resource should contain proxy_username = proxyuser' do is_expected.to contain_yumrepo('nodesource').with('proxy_username' => 'proxyuser') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_username' => 'proxyuser') end end end @@ -1303,10 +1217,8 @@ } end - repo_baseurl = 'https://rpm.nodesource.com/pub_18.x/el/7/$basearch' - repo_source_baseurl = 'https://rpm.nodesource.com/pub_18.x/el/7/SRPMS' - repo_descr = 'Node.js Packages for Enterprise Linux 7 - $basearch' - repo_source_descr = 'Node.js for Enterprise Linux 7 - $basearch - Source' + repo_baseurl = 'https://rpm.nodesource.com/pub_18.x/nodistro/nodejs/$basearch' + repo_descr = 'Node.js Packages - $basearch' # manage_package_repo context 'with manage_package_repo set to true' do @@ -1350,32 +1262,9 @@ is_expected.to contain_class('nodejs::repo::nodesource::yum') end - it 'the nodesource and nodesource-source repos should contain the right description and baseurl' do + it 'the nodesource repo should contain the right description and baseurl' do is_expected.to contain_yumrepo('nodesource').with('baseurl' => repo_baseurl, 'descr' => repo_descr) - - is_expected.to contain_yumrepo('nodesource-source').with('baseurl' => repo_source_baseurl, - 'descr' => repo_source_descr) - end - end - - context 'and repo_enable_src set to true' do - let :params do - default_params.merge!(repo_enable_src: true) - end - - it 'the yumrepo resource nodesource-source should contain enabled = 1' do - is_expected.to contain_yumrepo('nodesource-source').with('enabled' => '1') - end - end - - context 'and repo_enable_src set to false' do - let :params do - default_params.merge!(repo_enable_src: false) - end - - it 'the yumrepo resource should contain enabled = 0' do - is_expected.to contain_yumrepo('nodesource-source').with('enabled' => '0') end end @@ -1386,7 +1275,6 @@ it 'the nodesource yum repo files should exist' do is_expected.to contain_yumrepo('nodesource') - is_expected.to contain_yumrepo('nodesource-source') end end @@ -1397,7 +1285,6 @@ it 'the nodesource yum repo files should not exist' do is_expected.to contain_yumrepo('nodesource').with('ensure' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('ensure' => 'absent') end end @@ -1408,7 +1295,6 @@ it 'the yumrepo resource should contain proxy = absent' do is_expected.to contain_yumrepo('nodesource').with('proxy' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('proxy' => 'absent') end end @@ -1419,7 +1305,6 @@ it 'the yumrepo resource should contain proxy = http://proxy.localdomain.com' do is_expected.to contain_yumrepo('nodesource').with('proxy' => 'http://proxy.localdomain.com') - is_expected.to contain_yumrepo('nodesource-source').with('proxy' => 'http://proxy.localdomain.com') end end @@ -1430,7 +1315,6 @@ it 'the yumrepo resource should contain proxy_password = absent' do is_expected.to contain_yumrepo('nodesource').with('proxy_password' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_password' => 'absent') end end @@ -1441,7 +1325,6 @@ it 'the yumrepo resource should contain proxy_password = password' do is_expected.to contain_yumrepo('nodesource').with('proxy_password' => 'password') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_password' => 'password') end end @@ -1452,7 +1335,6 @@ it 'the yumrepo resource should contain proxy_username = absent' do is_expected.to contain_yumrepo('nodesource').with('proxy_username' => 'absent') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_username' => 'absent') end end @@ -1463,7 +1345,6 @@ it 'the yumrepo resource should contain proxy_username = proxyuser' do is_expected.to contain_yumrepo('nodesource').with('proxy_username' => 'proxyuser') - is_expected.to contain_yumrepo('nodesource-source').with('proxy_username' => 'proxyuser') end end end