Matthew Macdonald-Wallace <[email protected]> writes:
> On Sun, 2010-10-24 at 00:44 -0700, Yushu Yao wrote:
>
>> Any reason you can't use facter the command line?
>> E.g. call in python commands.getstatusoutput("facter")
>
> Because it's a dirty hack? ;)
Internally facter does a lot of the same, FWIW. ;)
I think what you probably want is 'facter --yaml', which emits the data in a
format easily consumed by other applications. Wrap, or cache, or process that
from your Python library and you have a nice, language independent way to get
that data.
Which is essentially what you want, right?
Daniel
--
✣ Daniel Pittman ✉ [email protected] ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.