On Tue, Feb 14, 2012 at 6:49 AM, ruslan usifov <[email protected]> wrote: > Hello > > In is possible inherits from parametrized class??
It's not currently possible, and I don't know if it's 100% clear when you inherit and add parameters do you intend inherit the parent's default, override the parent's default, or to pass new parameters. http://projects.puppetlabs.com/issues/6539 > For example i have base php52 class like this: > > class linux::php52($pools, $extensions='') inherits linux > { > ...... > } > > > and whants to inherit it like this: > > class linux::php52::cluster inherits linux::php52 For now you are probably best doing something like: class linux::php52::cluster ( $someparam ){ class { 'linux::php52': param => $someparam, } ... other resources ... } You will need to expose any attribute you plan override as a parameter in linux::php52. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
