Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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

1 Answer 1

Puppet Labs has some good documentation on this scenario here:

http://docs.puppetlabs.com/learning/modules1.html

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

 
discard

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.