1 Feb 2007 01:02
Re: [Puppet-dev] RFC: Internal redesign of the resource/transaction interface
David Lutterkort <dlutter <at> redhat.com>
2007-02-01 00:02:56 GMT
2007-02-01 00:02:56 GMT
On Wed, 2007-01-31 at 17:44 -0600, Luke Kanies wrote: > On Jan 31, 2007, at 5:21 PM, David Lutterkort wrote: > > A resource container seems like a good idea. Maybe we should develop > that to sit between the resources and the transaction. Yep, that's where I think ti should go. > Plenty of resources also cache information (e.g., the afore-mentioned > file stat object), and classes sometimes cache information too (e.g., > the prefetching and flushing that the ParsedFile providers use). Yeah, that's a bit of a sore point right now, since a lot of that caching depends on how puppet goes about its business in somewhat dodgy ways - I can think of two caching scopes that would be useful: per server and per transaction; having explicit caches for those would make the code a lot cleaner, and wouldn't rely on when classes and objects are created. > As to having two resource containers inside transactions, I think it > should be pretty straightforward to make the resource container > capable of storing both values. Makes sense; using two containers is appealing because it seems like a common theme inside puppet, but it might well be a bit overblown. > Once concern I have is that if the <at> should values are stored by the > container, then validation would have to be handled differently. At > the least, the validation process would have to return the munge/ > validate result, rather than just storing it in <at> should. Other(Continue reading)
RSS Feed