Skip to content

Commit

Permalink
npm is required on 16.04 (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel403 authored and juniorsysadmin committed Aug 24, 2016
1 parent b8edefe commit f324048
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
$npm_path = '/usr/bin/npm'
$repo_class = '::nodejs::repo::nodesource'
}
elsif $::operatingsystemrelease =~ /^16.04$/ {
$manage_package_repo = true
$nodejs_debug_package_name = 'nodejs-dbg'
$nodejs_dev_package_name = 'nodejs-dev'
$nodejs_package_name = 'nodejs'
$npm_package_ensure = 'present'
$npm_package_name = 'npm'
$npm_path = '/usr/bin/npm'
$repo_class = '::nodejs::repo::nodesource'
}
else {
warning("The ${module_name} module might not work on ${::operatingsystem} ${::operatingsystemrelease}. Sensible defaults will be attempted.")
$manage_package_repo = true
Expand Down

0 comments on commit f324048

Please sign in to comment.