From 38bc7a886694c246e136790cd13512d736349df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Krzy=C5=BCaniak=20=28eloy=29?= Date: Mon, 2 Jul 2018 14:05:52 +0200 Subject: [PATCH] fix for https://github.com/voxpupuli/puppet-mcollective/issues/361 --- manifests/server/config/factsource/yaml.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server/config/factsource/yaml.pp b/manifests/server/config/factsource/yaml.pp index 10bc40b..75619a0 100644 --- a/manifests/server/config/factsource/yaml.pp +++ b/manifests/server/config/factsource/yaml.pp @@ -28,7 +28,7 @@ if $yaml_fact_cron { if versioncmp($::facterversion, '3.0.0') >= 0 { cron { 'refresh-mcollective-metadata': - command => "puppet facts --render-as yaml |sed 's#!ruby/object:Puppet::Node::Facts##g' >${yaml_fact_path_real} 2>&1", + command => "facter -p --yaml >${yaml_fact_path_real} 2>&1", environment => 'PATH=/opt/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', user => 'root', minute => $cron_minutes,