Issue #5093 has been updated by Professor Falken. File pyfacter.py added File pyfacter_demo.py added
Here's a (very) basic example of how the python wrapper (and how it could be used) might work. It's pretty dirty, but it's a start! ;) I'm also maintaining this script as part of my 'randomscripts' repo on github - http://github.com/proffalken/randomscripts/ ---------------------------------------- Feature #5093: utility libraries for accessing Facter from other languages. https://projects.puppetlabs.com/issues/5093 Author: Nigel Kersten Status: Unreviewed Priority: Normal Assignee: Category: Target version: Keywords: Branch: We're all quite convinced we need to allow facts to be written in languages other than Ruby, but as raised on the users list recently, it would also be useful to have some simple wrapper libraries around Facter to allow access to facts from other languages. This is a reasonably simple problem, we just write some wrappers around the execution of facter --yaml with the following features: * Facter version interrogation * Request specific fact * Request all facts * Optionally load Puppet libraries for puppet-specific facts. -- 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://projects.puppetlabs.com/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.
