Run a task on a node group
Similar to running a task on a list of nodes, you can run a task on a node group.
Before you begin:
Install the tasks you want to use.
Make sure you have access to the nodes you want to target.
- Log into your primary server or client tools workstation.
- Run the command:
puppet task run <TASK NAME> --node-group <node-group-id>
Use the/v1/groups
endpoint to retrieve a list node groups and their IDs.