Bootstrap FreeKB - Puppet - Create a node group
Puppet - Create a node group

Updated:   |  Puppet articles

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.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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