From e7ee54a351a9716f24c167a301923ea55e0aa0ad Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Sat, 28 Oct 2023 16:33:48 +0200 Subject: [PATCH] terrible hacks to make ensure/provide happy --- manifests/params.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 7b4a5939..e12c589b 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -41,7 +41,10 @@ $nodejs_dev_package_name = 'nodejs-devel' $nodejs_dev_package_ensure = 'absent' $nodejs_package_name = 'nodejs' - $npm_package_ensure = 'absent' + $npm_package_ensure = $repo_url_suffix ? { + '16.x' => 'present', + default => 'absent', + } $npm_package_name = 'npm' $npm_path = '/usr/bin/npm' $repo_class = 'nodejs::repo::nodesource'