On Fri, 2010-10-22 at 08:54 -0700, Nigel Kersten wrote:
> 
> 
> On Fri, Oct 22, 2010 at 8:41 AM, Matt Wallace
> <li...@truthisfreedom.org.uk> wrote:
>         Hi all,
>         
>         We're writing a few scripts at the moment that could really
>         make use of
>         Facter, however the vast majority of them team (including my
>         self!) are not
>         proficient in Ruby, however they are highly proficient in
>         other languages such
>         as (dare I say it!) Python.
>         
>         Is there (or are there any plans to!) release bindings for
>         other languages to
>         enable facts to be used in scripts other than puppet.
> 
> 
> This is on the Facter roadmap, but I don't have a rough date for you.
> 
> 
> http://projects.puppetlabs.com/issues/2157 is the bug you should watch
> if you want to help out or just keep up to date on progress.
> 
> 
> Feedback in that bug log more than appreciated.

Hi Nigel,

I'm not sure I've explained myself fully here, so apologies for that.

I'm after a way to access the facts in a language other that Ruby, not
create them.

For example a python script that went something along the lines of:

====================
import facter

proc1 = facter.facts['processor_0']

print u'The first processor in this system is %s' % proc1
===================

That's a vary basic example, however as I've already got a script that
creates custom 
facts from the metadata in our provisioning system, I'm not worried
about creating the 
facts, I just want to be able to access this incredible wealth of
information across my 
various scripts (most of which are/will be in python) regardless of
language.

I love ruby, and I'm trying to learn it, but the truth is that me and my
team don't 
really have time to learn another language on top of our day jobs!

Thanks in advance,

Matt



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to