Try using an erb template for your facts.yaml file. Its working well for
me so far.
# facts.yaml.erb
<%=
yaml = ["---"]
keys = scope.to_hash.keys.reject {|k| k.to_s =~
/(uptime_seconds|uptime_hours|timestamp|free)/}
keys.sort.each {|k| yaml << "#{k}: #{scope.lookupvar(k).to_s}"}
yaml.join("\n ")
%>
# manifest
file{"/etc/mcollective/facts.yaml":
owner => root,
group => root,
mode => 400,
loglevel => debug,
content => template("mcollective/facts.yaml.erb");
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.