Hope I'm not being too thick about this but I'm having trouble creating a 
Hash from my server's Facts.

I've tried the following: 
  facts = File.read( "#{puppetdir}/yaml/facts/#{certname}.yaml" )

  factH = YAML.load( facts )               # fails
  factH = YAML.load( facts ).to_hash   # fails

It looks like the facts file is a yaml of a Puppet::Node::Facts but I can't 
figure out how to access it's contents.

What's the proper syntax for extracting the Facts into a hash?

-- 
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.


Reply via email to