On Mar 9, 2010, at 5:09 AM, Michael DeHaan wrote:

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


Yep, that's pretty much what I was proposing.   I'm a big fan of
structured stdin/stdout interfaces for quick extensibiility (and
JSON).

We could start by doing something that supports non-datastructured
facts now, and add datastructures later.
For now, it could just assert in the code that the type of each hash
key was a string or int.

I concur on the basic plan.

I'd add that having some plain data, like /etc/facter.d/foo, wouldn't be all bad, either, so you could just statically declare facts.

--
Tradition is what you resort to when you don't have the time or the
money to do it right. -- Kurt Herbert Alder
---------------------------------------------------------------------
Luke Kanies  -|-   http://reductivelabs.com   -|-   +1(615)594-8199

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