Hi all

I'm trying to retrieve all the currently stored nodes and their facts
from stored configuration and I am confused about how to approach it.

I have code like:

require 'puppet'
require 'puppet/rails'

Puppet::Rails.connect
Puppet::Rails::Host.find(:all).each do |node|

stuff here ...

end

But nothing ever gets returned.  If I do this in IRB I can see the
.connect connect to the DB but I can't retrieve any nodes.

Anyone have any idea what I am doing wrong?  And from there how to merge
the fact values into the node information?

Regards

James

-- 
Puppet Labs - http://www.puppetlabs.com
C: 503-734-8571

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to