From a37a050768636092b9dec928dd761bcfc6e0c8f6 Mon Sep 17 00:00:00 2001 From: Russell Knighton Date: Thu, 25 Feb 2021 14:04:42 +0000 Subject: [PATCH] Switch from exported to virtualised resources to address corey-hammerton#44 --- manifests/config.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/config.pp b/manifests/config.pp index ac754ad..4d94ac3 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -75,12 +75,12 @@ } - # Create modules.d files that exist in hiera then collect any created via exported resources + # Create modules.d files that exist in hiera as virtual resources, then collect all virtualised modules $module_templates_real = hiera_array('metricbeat::module_templates', $metricbeat::module_templates) $module_templates_real.each |$module| { - @@metricbeat::modulesd { $module: } + @metricbeat::modulesd { $module: } } - Metricbeat::Modulesd <<||>> + Metricbeat::Modulesd <||> case $::kernel { 'Linux': {