Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How to group some class / define in the node.pp file?

node 'node1' {
        ntp { ntp:
            server_is => "node"
        dns_resolv { dns:
            server_is => "node"

And, I have some modules: "oracle rpm", "sshkey users", "kernel parameters", ... and I don't know how to group together an unique class, for example "oracle-base" which contains all of my previous modules, then, if I declare a node with "oracle-base", it would automatically configure my node for oracle's modules.

How did you do that?

Thanks !

share|improve this question
See: Learning Puppet — Modules and Classes –  kenorb Apr 25 at 18:45

1 Answer 1

Puppet Labs has some good documentation on this scenario here:

Essentially, you put your manifest configuration inside a class defintion. Then you "include classname" under your node or another class.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.