Some of us have been talking about this for a while and I'm thinking
about knocking this out soon.
The idea is you should be able to write facts in any language, and
this lowers the barrier to entry for Puppet extensions from those
who don't want to learn Ruby just yet.
Facter should have a 'fact' dir, for instance:
/var/lib/facter/plugins
Which if it exists, any script in there, which is chmod+x, when run,
will return JSON, and return any number of facts (in hash format).
If there are no scripts in there, or if the directory is not present,
or they aren't executable, those parts will just be skipped and facter
keeps
on working like it does today.
This should allow easy creation of numerous facts in numerous
languages (not just Ruby).
Originally I thought I would name the fact based on the shell script,
though this seems like it would be much more efficient as it would
result in far
less executions and would enable creation of more than one fact per script.
Thoughts?
--Michael
--
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.