On Tue, May 31, 2011 at 4:31 PM, Yushu Yao <y...@lbl.gov> wrote:
> Hi Experts,
>
> Sorry for re-posting but I wasn't able to get a definite answer.
>
> I noticed there was an issue opened about this (And some posts).
> https://projects.puppetlabs.com/issues/3646
>
> Just wondering what is the best way today to pass facts to puppet master
> --compile?

Supply the client yaml facts in $vardir/yaml/ directory, matching the
client certname.

facter --yaml output isn't actually valid, this script should generate
the right data from the agent:

#!/usr/bin/env ruby

require 'puppet'
result = Puppet::Node::Facts.new(Puppet[:certname].to_s, Facter.to_hash)
result.add_local_facts
result.stringify
result.downcase_if_necessary
puts result.to_yaml

Thanks,

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to