Skip to content

Commit

Permalink
Fix global_config_entry dependency on NPM when using nodesource repo
Browse files Browse the repository at this point in the history
Signed-off-by: Wiebe Verweij <wiebe.verweij@moxio.com>
  • Loading branch information
wiebe committed Oct 22, 2019
1 parent a3aeae0 commit c8ff913
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/npm/global_config_entry.pp
Expand Up @@ -49,7 +49,10 @@
}

if $nodejs::npm_package_ensure != 'absent' {
$exec_require = "Package[${nodejs::npm_package_name}]"
$exec_require = $nodejs::repo_class ? {
default => "Package[${nodejs::npm_package_name}]",
'::nodejs::repo::nodesource' => "Package[${nodejs::nodejs_package_name}]",
}
} else {
$exec_require = undef
}
Expand Down

0 comments on commit c8ff913

Please sign in to comment.