From fabd788bdc53cad9c798d37cea396a584994f140 Mon Sep 17 00:00:00 2001 From: Alex Gkiouros Date: Wed, 30 Oct 2019 15:04:24 +0000 Subject: [PATCH] fix for voxpupuli#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..05af78e 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,