On May 17, 12:44 pm, Joshua Hoblitt <jhobl...@cpan.org> wrote: > In order for this to work for me both ::dev & ::prod would need to inherit > from ::common and extend the same group definition. Without some sort of > multiple inheritance support that would end up with a Group type declared > twice or am I missing something?
Yes. Look at my example again: only ::dev inherits from ::common. As I said, if you come up with requirements for ::prod to also override ::common then it gets dicey and maybe breaks altogether, but for what you actually described, there is no need for that. As for "multiple inheritance", I guess you mean declaring more than one subclass of the same class on one node (whereas the term more conventionally refers to refers to a class having more than one direct superclass). I think I remember Puppet allowing multiple subclasses when last I tested, so long as they do not override the same resources. It certainly permitted subclasses of subclasses. With that said, inheritance is probably not the best solution to this problem. Personally, I would not even consider it unless I expected the override to be a one-off, or unless I needed a quick, temporary solution. John -- 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.