How to override puppet class arguments in child node?

Posted by Jon Skarpeteig on Server Fault See other posts from Server Fault or by Jon Skarpeteig
Published on 2012-06-06T12:15:27Z Indexed on 2012/06/08 22:42 UTC
Read the original article Hit count: 230

Filed under:
|

I'm attempting to accomplish something like the below:

node 'basenode' {
    class {
        'puppet' :
         disable => false,
    }
}
node 'child' inherits 'basenode' {
class {
        'puppet' :
         disable => true,
    }
}

This gives me:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate definition: Class[Puppet] is already defined

How can I override this setting for this single node, and still have a parameterised class?

© Server Fault or respective owner

Related posts about puppet

Related posts about puppetmaster