From 9b41c190ada0dacb0a2c584640c178f280875156 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 27 Oct 2023 11:22:57 +0200 Subject: [PATCH] Update default release to 20.x --- README.md | 4 ++-- manifests/params.pp | 2 +- spec/classes/nodejs_spec.rb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 80ea5fed..68161b87 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,10 @@ To install Node.js and npm (using the NodeSource repository if possible): class { 'nodejs': } ``` -The default version installed is currently `18.x`. +The default version installed is currently `20.x`. If you wish to install a Node.js 21.x release from the NodeSource repository -rather than 18.x on Debian/RHEL platforms: +rather than 20.x on Debian/RHEL platforms: ```puppet class { 'nodejs': diff --git a/manifests/params.pp b/manifests/params.pp index 32e7c7a4..7b4a5939 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -13,7 +13,7 @@ $repo_release = undef $repo_url_suffix = ($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7') ? { true => '16.x', - default => '18.x', + default => '20.x', } $use_flags = ['npm', 'snapshot'] diff --git a/spec/classes/nodejs_spec.rb b/spec/classes/nodejs_spec.rb index b77263d4..a656816c 100644 --- a/spec/classes/nodejs_spec.rb +++ b/spec/classes/nodejs_spec.rb @@ -1303,8 +1303,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_baseurl = 'https://rpm.nodesource.com/pub_20.x/el/7/$basearch' + repo_source_baseurl = 'https://rpm.nodesource.com/pub_20.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'