On Sep 30, 2010, at 4:32 AM, Daniel Pittman wrote: > David Schmitt <[email protected]> writes: >> On Tue, 28 Sep 2010 12:15:47 -0700, Nigel Kersten <[email protected]> >> wrote: >> >>> Have we been able to come up with any use cases other than packages where >>> combining offers a benefit? >> >> The nagios types seem to be reparsing/rewriting the target on every >> resource. Having them grouped and written out at once might reduce the >> overhead. I can imagine a provider implementation which prefetches the >> target and delays the write-out internally, but I'd rather not ;-) >> Especially since the nagios types have the additional problem of mixing >> multiple types within the same target. >> >> Having this in the "orchestration" layer and supported by a well-defined API >> on the type and provider level (having the grouping explicit and allow the >> implementation to provide a group_flush method), would make the flow much >> clearer and keep types/providers from second-guessing the required >> flush-barriers. > > For what it is worth that "orchestration" layer sounds suspiciously like what > might be needed internally to implement part of my mental model for resources. > > Specifically (and, as y'all have heard before), the case where you have a > configuration file that is composed of multiple independent components like, > say, an Apache configuration file with multiple sites, but without using > 'include' to implement it.[1] > > Just sayin' > Daniel > > Why, yes, I might have my eye on things that make this easier to implement > tomorrow, indeed. > > Footnotes: > [1] Usually, of course, in the form of something that has multiple > independent components, but upstream doesn't provide 'include', and where > you currently find the 'concat' module or something similar working > around the issue of modelling this naturally.
Interesting. I'm not sure it gets you all the way there, because you're at risk of having a dependency split the file into multiple saves, which probably doesn't do what you want. I've been trying to come up with some kind of inspiration for how to do what amounts to snippets in memory - that is, building file snippets and combining them into a file without writing them to a disk - but I haven't quite. Not sure how much this helps, but I can almost see how you might think it'd get us there. -- In science, 'fact' can only mean 'confirmed to such a degree that it would be perverse to withhold provisional assent.' I suppose that apples might start to rise tomorrow, but the possibility does not merit equal time in physics classrooms. -- Stephen Jay Gould --------------------------------------------------------------------- Luke Kanies -|- http://puppetlabs.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.
