Probably use a class parameter. You're gonna want something like this, I 
think:

class base ($kind = "normal") {
  $mpmtype = $kind ? {
    'special' => 'prefork',
    default => 'worker',
  }
  class {'apache': mpm => $mpmtype }
}

On your normal nodes, you'd just "include base" or "class {'base':}", and 
on your special nodes, you'd "class {'base': kind => 'special'}".

See?

Best practice is to try and present a clean interface with your wrapper 
classes -- that means instead of exposing every knob you might twiddle as a 
class parameter, settle on a limited number of roles (like that "kind" 
parameter I was showing), and then use logic inside the class to change any 
of the relevant bits in the way that node type needs. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/KPQzJv_NjPMJ.
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.

Reply via email to