From 82577257a577c04c5d2508e29bb686f867385bba Mon Sep 17 00:00:00 2001 From: markuszilch Date: Tue, 13 Feb 2024 16:17:06 +0100 Subject: [PATCH] remove legacy facts in pp files as well --- manifests/params.pp | 2 +- manifests/service.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 455c87f..73cd68a 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -30,7 +30,7 @@ $mmonit_password = 'monit' $mmonit_without_credential = false - case $facts['osfamily'] { + case $facts['os']['family'] { 'Debian': { $config_file = '/etc/monit/monitrc' $config_dir = '/etc/monit/conf.d' diff --git a/manifests/service.pp b/manifests/service.pp index 4275b88..c76250a 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -9,7 +9,7 @@ } if $monit::service_manage { - if $facts['osfamily'] == 'Debian' { + if $facts['os']['family'] == 'Debian' { file { '/etc/default/monit': content => $monit::default_file_content, notify => Service[$monit::service_name],