On Feb 7, 1:21 pm, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote: > Hi, > > sorry for jumping to conclusions, but your questions suggest that you're > committed to some rather horribly design ideas.
Then please educate me! What's horrible about it? > > Can you add some meat to your inquiry? What are your trying to achieve? I have a class which represents a group of yum repositories (something::blah) and that class calls each repository (something::aaa) > Under most circumstances, you don't want inheritance at all. > Use it *only* to override the parameters of one or more resources in the > base class. What I have done wrong would be much appreciated. Thanks. > > HTH, > Felix > > On 02/07/2012 12:52 PM, jimbob palmer wrote: > > > > > > > > > If I have a class > > > class something {} > > > and a subclass > > > class something::blah ($var=0) inherits something { > > class { 'something::aaa': somevar => 1, } > > class { 'something::bbb': somevar => 2, } > > } > > > should the classes called from the subclass inherit the parent class? > > e.g. which is good practice? > > > class something::bbb($somevar) inherits something {} > > or: > > class something::bbb($somevar) {} > > > Also, what is the best way to set $somevar in something::bbb from a node > > definition? > > > Thanks. -- 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.