From 5646607ebf28687c96633099e9200d4020828c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ga=C3=9F?= Date: Tue, 25 Jun 2024 11:28:11 +0200 Subject: [PATCH] fix missing monitoring section in config with Auditbeat 8 --- manifests/config.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/manifests/config.pp b/manifests/config.pp index 7fbe6ac..6d4f2ec 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -43,7 +43,11 @@ $merged_config = $auditbeat_config_temp } } else { + if $auditbeat::monitoring { + $merged_config = deep_merge($auditbeat_config_temp, {'monitoring' => $auditbeat::monitoring}) + } else { $merged_config = $auditbeat_config_temp + } } file { '/etc/auditbeat/auditbeat.yml':