Skip to content

Commit

Permalink
Merge pull request #482 from voxpupuli/default20
Browse files Browse the repository at this point in the history
Update default release to 20.x
  • Loading branch information
evgeni authored Oct 28, 2023
2 parents 4340164 + 9b41c19 commit 5f0fdc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/nodejs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 5f0fdc9

Please sign in to comment.