Issue #1932 has been updated by Adrien Thebo. Assignee set to Adrien Thebo Branch set to https://github.com/adrienthebo/facter/tree/tickets/next/1932
I have some preliminary work for this at the given branch. As it stands, there was fact-wide caching of all facts that was permanent, which would guarantee that all facts would be static. This does not seem like desired behavior. In place of this, I've removed the fact-wide caching and added a has_ttl method to the Facter::Util::Resolution class, so we can have per-resolution granularity of facts. I would greatly appreciate feedback from this, and I'll send this to the mailing list shortly. Lastly, what strikes me is that we may want caching of facter values between runs. For very costly facts that are more or less static, it could prove beneficial to serialize facts and cache them in /var/lib/puppet, /var/lib/facter, or some other location, depending on the user, and reuse them between runs. ---------------------------------------- Feature #1932: Facts should support a ttl https://projects.puppetlabs.com/issues/1932 Author: Luke Kanies Status: Accepted Priority: High Assignee: Adrien Thebo Category: library Target version: 1.6.0 Keywords: ttl caching Branch: https://github.com/adrienthebo/facter/tree/tickets/next/1932 Affected Facter version: When defining facts, you should be able to declare a TTL for the fact value. Some facts need to be refreshed constantly, and some should never be refreshed. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
