From 53067254c38d7755a7f34177ef5b2f414faaa49d Mon Sep 17 00:00:00 2001 From: efoft Date: Sun, 3 May 2020 09:54:59 +0300 Subject: [PATCH] fix issue #44 --- manifests/config.pp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/manifests/config.pp b/manifests/config.pp index a01f67b..19aa633 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -75,12 +75,9 @@ } - # Create modules.d files that exist in hiera then collect any created via exported resources + # Create modules.d files that exist in hiera or passed to metricbeat class as parameter $module_templates_real = hiera_array('metricbeat::module_templates', $metricbeat::module_templates) - $module_templates_real.each |$module| { - @@metricbeat::modulesd { $module: } - } - Metricbeat::Modulesd <<||>> + metricbeat::modulesd { $module_templates_real: } case $::kernel { 'Linux': {