Skip to content

Commit

Permalink
remove legacy facts in pp files as well
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Feb 13, 2024
1 parent ffb4a40 commit 9bb4fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

if $monit::service_manage_bool {
if $facts['osfamily'] == 'Debian' {
if $facts['os']['family'] == 'Debian' {
file { '/etc/default/monit':
content => $monit::default_file_content,
notify => Service[$monit::service_name],
Expand Down

0 comments on commit 9bb4fef

Please sign in to comment.