Run Puppet on one or more specific nodes
An orchestrator job can target one or more specific nodes. This is useful if you want to run Puppet on a single node, a few specific nodes, nodes that are not in the same node group, or nodes that can't easily be identified by a single PQL query.
Make sure you have access to the nodes you want to target.
Make sure you have the permissions necessary to run jobs.
- In the console, in the Jobs page, click Run Puppet.
- Optional: In the Job description field, provide a description. The text you enter here appears on the job list and job details pages.
- Under Environment, select one of the following options to specify the environment you want the nodes to run in:
- Run nodes in their own assigned environment: Nodes run in the environment specified by the Node Manager or their
puppet.conf
file. - Select an environment for nodes to run in: Nodes run in the environment you select from the dropdown list. Nodes can run in an environment if their environment is agent-specified or if they're classified in that environment by the node manager.
- Run nodes in their own assigned environment: Nodes run in the environment specified by the Node Manager or their
- Under Run options, select the run mode for the job. The default run mode for a job always attempts to enforce new catalogs on nodes. To change the run mode, use the following selections:
- No-op: Simulate a Puppet run on all nodes in the job without enforcing a new catalog.
- Debug: Print all debugging messages.
- Trace: Print stack traces on some errors.
- Eval-trace: Display how long it took for each step to run.
- Override noop = true configuration: If any nodes in the job have
noop = true
set in theirpuppet.conf
files, Puppet ignores that setting and enforce a new catalog on those nodes. This setting corresponds to the--no-noop
flag available on the orchestrator CLI.
- Click Next: Select nodes.
- Under Node selection method, from the dropdown, select Node list.
- In the search field, search for and select the nodes you want to add to the job.
You can select nodes from multiple searches to create a complete list of the nodes you want to target.
The search does not handle regular expressions.
Nodes you select are added to the list under Nodes selected for this job. To remove nodes from the list, you can click Edit selection.
- When you have selected all the nodes you want to target, click Next: Review and schedule.
- Review the details of your job configuration and the selected nodes. To make changes, you can click Edit in the Configure job and Select nodes summaries, or click Back to return to previous steps.
- Schedule the job or, to start the Puppet run immediately, click Run job.
You can view the job status and a list of previous and scheduled jobs on the Jobs page.
To rerun a job, click on the relevant job ID and click Run again, choosing whether to rerun it on all nodes or only the nodes that failed during the initial run.