2

I am in the process of setting up Puppet in our QA environment. I have created a few manifests and setup classes which are running fine. I am aware of Node definitions and have successfully created manifests to apply on a few nodes using node definition. But I am yet to figure out how to put a group of nodes into a group so that I can use the groupname instead of having to specify each nodes in the node definition. This URL to the puppetlabs document seem to talk only about group creation in Puppet Enterprise version. How do I create groups in community version?

This is my current nodes.pp file.

[root@puppet modules]# cat /etc/puppet/manifests/nodes.pp
node "saturn.qa1.example.com", "mercury.qa1.example.com" {
      include qa1check
}
  • You might need to take a look at the roles/profiles patterns (see google). Or perhaps you can achieve what you want via hiera. – Zoredache Nov 3 '14 at 17:32
2

You can't.

Either you use regexes for the node name, or roll your own External Node Classifier (ENC) that lets you this in a simplified fashion.

| improve this answer | |
  • Thanks @Roman. Can we create groups if it is an Enterprise version? – Citylight Nov 3 '14 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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