>> I mean a cron job with:
>>
>> facter -y > /var/lib/facter/cache.yaml
>
>
> Based on past experiences I am always a little unnerved by the idea of using
> a file on disk as "API".  It is revealing an implementation detail of your
> program that makes it much harder to make changes in the future without
> breaking backwards compatibility.  That concern, combined with Ken's  cron
> job snippet, gives me the inclination to say that people can fairly achieve
> what you are describing without us formally committing to that as an
> "API"... and that seems like a win to me.

... just to be clear the code example I provided is an
over-simplification and doesn't take into account any atomic-write
issues. I think we had problems with partial writes of this cache file
in PE, that were solved in the cron job later on.

ken.

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