Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '15 at 18:45

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.