I used to fill mcollective yaml facts with a simple facter -p > foo.yaml.

But with facter 3, -p is gone, one should use 'puppet facts --render-as yaml' 
instead.

So far so good, but mcollective can't use this command output :
yaml_facts.rb:31:in `rescue in block in load_facts_from_source' Failed to load 
yaml facts from /var/cache/mcollective/facts.yaml: TypeError: no implicit 
conversion of Puppet::Node::Facts into Hash

Indeed, the output is:
--- !ruby/object:Puppet::Node::Facts
name: <FQDN>
values:
...
fact values
...

How can I filter the output and get only the values ?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/DA7BE0C4-8AFF-4D9C-9834-C65BD2E64F9B%40orange.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to