On Monday, July 20, 2015 at 2:12:45 PM UTC-7, Fabrice Bacchella wrote: > > 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. >
For this (and a few other reasons), the breaking change of removing the -p switch in Facter 3.0.0 is being reverted in 3.0.2, which will be released very soon. Unfortunately I don't know of a good workaround that is possible with the "puppet facts" command given your intended usage. > > 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/935fa546-6e1c-41bd-8c6f-5c5788267ae7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
