Puppet inheritance of parametrized classes

Posted by paweloque on Server Fault See other posts from Server Fault or by paweloque
Published on 2012-10-30T15:33:09Z Indexed on 2012/10/30 17:04 UTC
Read the original article Hit count: 139

Filed under:

I have a situation in puppet where I want to inherit from a parametrized class:

class base ($basepath) {
  ...
}

class extends_base ($ext_param) inherits base {
  ...
}

Now trying to instantiate the extends_base class I get the following error message:

Must pass basepath to Class[Base]

However, I don't see a way how to pass the basepath parameter to the Base class.. I tried to pass the param in the Class[Extends_base] definition, puppet doesn't like this either.

© Server Fault or respective owner

Related posts about puppet