Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7e5c40

Browse files
committed
Fix nodejs dev package name for Ubuntu 20.04 . #421
1 parent af1ba04 commit c7e5c40

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ This module has received limited testing on:
519519

520520
* CentOS/RHEL 6/7/8
521521
* Debian 8
522-
* Ubuntu 16.04/18.04
522+
* Ubuntu 16.04/18.04/20.04
523523

524524
The following platforms should also work, but have not been tested:
525525

manifests/params.pp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@
4343
$npm_path = '/usr/bin/npm'
4444
$repo_class = '::nodejs::repo::nodesource'
4545
}
46+
elsif $facts['os']['release']['full'] =~ /^20\.04$/ {
47+
$manage_package_repo = true
48+
$nodejs_debug_package_name = 'nodejs-dbg'
49+
$nodejs_dev_package_name = 'libnode-dev'
50+
$nodejs_dev_package_ensure = 'absent'
51+
$nodejs_package_name = 'nodejs'
52+
$npm_package_ensure = 'absent'
53+
$npm_package_name = 'npm'
54+
$npm_path = '/usr/bin/npm'
55+
$repo_class = '::nodejs::repo::nodesource'
56+
}
4657
else {
4758
warning("The ${module_name} module might not work on ${facts['os']['name']} ${facts['os']['release']['full']}. Sensible defaults will be attempted.")
4859
$manage_package_repo = true

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"operatingsystem": "Ubuntu",
5353
"operatingsystemrelease": [
5454
"16.04",
55-
"18.04"
55+
"18.04",
56+
"20.04"
5657
]
5758
}
5859
],

0 commit comments

Comments
 (0)