Starting to get some clarity but still need help. Using YAML to load Facts 
produces the YAML object below. But I'm still not clear on how to access 
the contents.

myFacts = YAML.load( facts.yaml )
print myFacts.inspect

###  output:

#<YAML::Object:0x7f550d6c6858 @class="Puppet::Node::Facts", 
@ivars={"values"=>{"timezone"=>"UTC", "puppet_vardir"=>"/var/lib/puppet", 
"macaddress_eth0"=>"00:50:56:8D:4E:95",  ...

Spelunking through the code leads me to think that the following should 
work, but it doesn't:
   print myFacts['timezone']


-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
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