On 07/01/2011 10:01 AM, jcbollinger wrote:
Parameterized classes address problem (1) by formalizing class parameterization, and they address problem (2) by making it illegal to include a parameterized class more than once (even with the same parameters). One of my main objections to parameterized classes is that the latter is too far-reaching and constraining.
The problem is context dependent classes. The new rules intend to make it impossible to write such classes, except where the context is explicitly passed in the argument list.
Things to consider: 1) I personally recommend avoiding deep node inheritance hierarchies. In fact, I recommend no more than two levels to your node inheritance tree. This may or may not help with your present problem. 2) As I mentioned above, you may be able to just change to fully- qualified variable names. That would be quick and relatively painless.
Well, I will play with 2.7 this weekend with an eye toward killing context dependencies in my manifests. The question is, are the dependencies necessary (and there are a lot of them), or are they just a result of thinking in C? Thanks for being didactic :-) -- vagn -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.