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'