From 500670b0bdfe313b5acb1cadc5d3f861554b1b34 Mon Sep 17 00:00:00 2001 From: Erik Geiger Date: Wed, 3 Aug 2022 15:58:00 +0200 Subject: [PATCH] fixing Amazon Linux 2 support. Monit defaults to reading monitrc file, not monit.conf on Amazon Linux 2 --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 03e10da..d294507 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -62,7 +62,7 @@ case $::operatingsystemmajrelease { '2': { $monit_version = '5' - $config_file = '/etc/monit.conf' + $config_file = '/etc/monitrc' } default: { fail("monit supports Amazon Linux 2. Detected operatingsystemmajrelease is <${::operatingsystemmajrelease}>.")