From 2f02a829e4339c177f0bf6038fbe3d2246a9c0f3 Mon Sep 17 00:00:00 2001 From: Jan Vansteenkiste Date: Fri, 1 Mar 2019 08:31:40 +0100 Subject: [PATCH] Don't use top scope variables but facts --- manifests/params.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index b2d255d..84e4e7c 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,7 +1,7 @@ class sysctl::params { # Keep the original symlink if we purge, to avoid ping-pong with initscripts - case "${::osfamily}-${::operatingsystemmajrelease}" { + case "${facts['osfamily']}-${facts['operatingsystemmajrelease']}" { 'RedHat-7','Debian-8': { $symlink99 = true } @@ -10,7 +10,7 @@ } } - case $::osfamily { + case $facts['osfamily'] { 'FreeBSD': { $sysctl_dir = false }