Does anyone have a good resource for describing the differences between including and inheriting classes? VR -pjh -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
All you really need to know is that you can override things with inheritance but you can''t if you just include them. I would start here: http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial On Thu, Jan 21, 2010 at 2:48 PM, pjh <philip.hartlieb@gmail.com> wrote:> Does anyone have a good resource for describing the differences > between including and inheriting classes? > > VR > > -pjh > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > > > >-- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaughan@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> Does anyone have a good resource for describing the differences > between including and inheriting classes?I use the approach "inclusion over inheritance". Only inherit stuff if you need to overwrite things. cheers pete -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> I use the approach "inclusion over inheritance". Only inherit stuff if you > need to overwrite things.Eric Gamma (the guy who wrote the book on design patterns) said as much: http://www.artima.com/lejava/articles/designprinciples4.html J. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jan 21, 4:33 pm, Peter Meier <peter.me...@immerda.ch> wrote:> > Does anyone have a good resource for describing the differences > > between including and inheriting classes? > > I use the approach "inclusion over inheritance". Only inherit stuff if > you need to overwrite things.Not only is that an outstanding approach in general, but it goes double for Puppet. Puppet subclass behaviors can be surprising at times, and you are better off using subclasses only where they provide a big win. 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thank you all for the feedback....on my 4th time through the tutorial I got my light-bulb :) On Jan 22, 9:05 am, jcbollinger <John.Bollin...@stJude.org> wrote:> On Jan 21, 4:33 pm, Peter Meier <peter.me...@immerda.ch> wrote: > > > > Does anyone have a good resource for describing the differences > > > between including and inheriting classes? > > > I use the approach "inclusion over inheritance". Only inherit stuff if > > you need to overwrite things. > > Not only is that an outstanding approach in general, but it goes > double for Puppet. Puppet subclass behaviors can be surprising at > times, and you are better off using subclasses only where they provide > a big win. > > 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.