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?
As suggested in the ticket above, puppet master —compile ${client_fqdn} —factsfile ${file_full_of_facts} will be great!
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...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.