Sorry - forgot to Reply All...

On 9 March 2010 07:58, Michael DeHaan <[email protected]> wrote:
> Some of us have been talking about this for a while and I'm thinking
> about knocking this out soon.

Yeah this has come up a few times and Paul and RI and I discussed it a
while back...

We sort of put it on the back-burner to get Facter fixed.

> 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.

We should be aiming for Nagios-style plug-in output.  So whatever gets
executed outputs something like:

{
 "facts": {
   "network": {
     "interface": "eth0",
     "ip": "192.168.0.1",
     "netmask": "255.255.255.0",
   },
   "disk": {
     "name": "sda1",
     "size": "1000",
  }
 },
}

This makes it:

a) simple
b) a "standard" for integration
c) Allows simple parsing, validation, cleansing and integrity routines
on incoming data.

Cheers

James

-- 
Author of:
* Pro Linux System Administration (http://tinyurl.com/linuxadmin)
* Pulling Strings with Puppet (http://tinyurl.com/pupbook)
* Pro Nagios 2.0 (http://tinyurl.com/pronagios)
* Hardening Linux (http://tinyurl.com/hardeninglinux)

-- 
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.

Reply via email to