nodejs
nodejs copied to clipboard
Add support for new NodeSource repository + Node 18.x
Description
The NodeSource project has launched a new DEB & RPM unified repository under the nodistro
codename, using a new GPG signing key. The APT repository (Debian, Ubuntu) should also not use deprecated apt-key
anymore. Also this cookbook should at minimum support test installing NodeJS 18.x (currently supported) and drop 17.x (not supported).
Issues Resolved
- Default install Node 18.9.1, using Node 18.x new
nodistro
package repository - Repo recipe: adjust to match 18.x manual install recommended by NodeSource
- Add support for Alma Linux 9
- Drop support for Amazon Linux 2, CentOS 7 (unsupported by NodeSource 18.x)
- Repair the broken Inspec test commands
Check List
- [x] A summary of changes made is included in the CHANGELOG under
## Unreleased
- [x] New functionality includes testing.
- [x] New functionality has been documented in the README if applicable.
Remarks
- We should add tests with Amazon Linux 2023 (already supported by NodeSource 18.x) when Chef and Bento support it:
- https://github.com/chef/chef/issues/13572
- https://github.com/chef/bento/issues/1534