Issue #2356 has been updated by Dan Bode.

Hi Luke, I wanted to comment on your recommended solution. 

I have added code in the external node classifier to parse the yaml/facts dir, 
this works fine, but for some reason it runs the external node classifier when 
it syncs the plugins (on time for each plugin) and at this time, the yaml/facts 
dir has not been created yet. 

I can code my way around this, but it means that my code has to always ignore 
the case where the file does not exist (and set some defaults).

some loggin (evey body loves log messages...)

err: Could not retrieve external node information for HOST: Execution of 
'/etc/puppet/tools/node_classifier HOST' returned 1: 
/usr/lib/ruby/1.8/yaml.rb:143:in `initialize': No such file or directory - 
/var/lib/puppet/yaml/facts/HOST.yaml (Errno::ENOENT)
        from /usr/lib/ruby/1.8/yaml.rb:143:in `open'
        from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
        from /etc/puppet/tools/node_classifier:12

info: mount[plugins]: Sending /plugins/parser/functions/get_ora_home.rb to HOST
... now, it reads the node classifier when there is actually a yaml/facts file, 
everything works
----------------------------------------
Feature #2356: access to facts in external nodes
http://projects.reductivelabs.com/issues/2356

Author: Dan Bode
Status: Accepted
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


It would be nice if external nodes had access to facts. Does the order support 
this?

They could be added as environment variables of the form FACT_X


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to