I've ALWAYS used nodes inheritance and have NEVER had problems with them: - no scoping issues (well just at the beginning when I didn't realize what I'm going to write below) - no problems with resource defaults (I actually just set few general defaults without overriding them).
I've always wondered what's this fuzz about nodes' inheritance "bad reputation", even in James' book. You just have to take care of one thing: - Use nodes inheritance to set and override variables NOT to include classes. NEVER include a class in the inheritance tree (well you can if you don't redefine variables used in that class but still is not necessary). In a nodes inheritance layout BEFORE you set the variables and THEN you include classes (in my case "role classes"). In my typical layout I've one or more inheritance levels where I set and, according to needs, override variables and in the final node (the one with the actual node hostname) I just include a role class. In the role class sometimes I set some more variables (typically related to the classes included in the role), THEN include a "general" class (which includes all the common classes) and FINALLY include the classes and defines related to that role. So the point IMHO is much better to explain the minimal recommendations that the nodes' inheritance approach require rather than just saying that it's wrong or not recommended. Said this I'm not saying that this is the BEST possible (still wonder what could be the "best", in Puppet's world), but that it works well and without problems, that scales well. An example of such a layout is here: https://github.com/example42/puppet-infrastructures My2c Al On Aug 5, 3:33 pm, Nigel Kersten <ni...@puppetlabs.com> wrote: > We have a bunch of problems people regularly run into with node inheritance, > and it's something we'd like to find a better solution for. > > Is anyone using node inheritance and happy with how it works? If so, can you > describe your setup briefly? > > -- > Nigel Kersten > Product Manager, Puppet Labs > > *Join us for **PuppetConf * > <http://www.bit.ly/puppetconfsig> > Sept 22/23 Portland, Oregon, USA. > * > * -- 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.