How to create a Puppet node group

Home > Search > How-to
  by

Lets say you want to distribute a certain software program to only a certain set of Puppet Agents. For example, lets say you only want Puppet Agent 1, 2, 8, and 9 to get Nano. You will create a node group, and the add nodes to the group.

 


A node group, as the name implies, is a group that contains one or more nodes.

  1. In the left panel of Puppet Master, select Nodes.
  2. Select Classification.
  3. Select Add group.
  4. Complete the Add group form, and select Add.

In this example, a node group named ExampleGroup is created.

 


Add nodes to the group

  1. In the left panel of Puppet Master, select Nodes.
  2. Select Classification.
  3. Select the group you want to add nodes to.
  4. Select the Rules tab.
  5. In Certname, enter the name of a node to add to the group, and select Pin node.
  6. Select Commit change.

In this example, a node named Shark1 was added to ExampleGroup.

 


Add classes to the group

  1. In the left panel of Puppet Master, select Nodes.
  2. Select Classification.
  3. Select the group you want to add classes to.
  4. Select the Classes tab.
  5. In the Add new class form, type the name of the module you want to add and then select Add Class.
  6. Select Commit change.

In this example, a class named nano was added. This will install nano on the nodes in the group.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments