> Yeah that's certainly one of the things I want to do, as is if we're
> calling out to a command to parse it and can cache/process it in one
> time as opposed to calling a billion ifconfig/dmidecodes that'd be
> good too.

Yep, if you're shelling out or executing 'puppet' without the daemon,
in memory caching doesn't work.  (But how slow are we really?)

Cache dir would be simple though...

You could simply stat the file and see when the last fact storage run
happened, and each module could set (or not set) a timeout on a
case-by-case basis.
No timeout would mean don't cache, so it would automatically work with
any existing facts, and the facts wouldn't have to implement the
caching
themselves.

Things like OS version are inexpensive but wouldn't have to be checked
too frequently, I'd bet :)

--Michael

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