Running tasks from the console
Run ad-hoc tasks on targeted nodes to upgrade packages, restart services, or perform any other type of single-action executions on nodes in your inventory.
When you set up a job to run a task from the console, the orchestrator creates an ID to track the task job, shows you all the targeted nodes, and runs the tasks on those nodes in the appropriate order. Puppet compiles a new catalog for each node targeted.
You can use one of the following methods to target nodes for a task: :
-
Specify a list of one or more nodes.
- Specify a node group.
-
Use a Puppet Query Language (PQL) query to define a set of nodes.
Run a task on one or more specific nodes
An orchestrator job can target one or more specific nodes. This is useful if you want to run a task on a single node, a few specific nodes, nodes that are not ins the same node group, or nodes that can't be easily identified by a single PQL query.
Install the tasks you want to use.
Make sure you have access to the nodes you want to target.
Make sure you have permissions necessary to run tasks.
Run a task over SSH
Use the SSH protocol to run tasks on target nodes that do not have the Puppet agent installed.
Install the tasks you want to use.
Make sure you have access to the nodes you want to target.
Make sure you have permissions necessary to run tasks.
Run a task over WinRM
Use the Windows Remote Management (WinRM) to run tasks on target nodes that do not have the Puppet agent installed.
Install the tasks you want to use.
Make sure you have access to the nodes you want to target.
Make sure you have permissions necessary to run tasks.
Run a task on a node group
Similar to running a task on a list of nodes that you create in the console, you can run a task on a node group.
Install the tasks you want to use.
Make sure you have access to the nodes you want to target.
Make sure you have permissions necessary to run tasks.
Run a task on a PQL query
Create a PQL query to run tasks on nodes that meet specific conditions.
Install the tasks you want to use.
Make sure you have access to the nodes you want to target.
Make sure you have the permissions necessary to run tasks and PQL queries.
Add custom PQL queries to the console
Add your own Puppet Query Language (PQL) queries to the console to quickly access them when running jobs.
Schedule a task
Schedule a task to perform single-action executions at a particular date and time or on a recurring schedule.
Install the tasks you want to use.
Make sure you have access to the nodes you want to target.
Make sure you have permissions necessary to run tasks.
Edit a scheduled task
You can view and edit a scheduled task job if, for example, you want to change the selected run options or add nodes to the job.
- In the console, go to Tasks and switch to the Scheduled Tasks tab.
- In the list of scheduled tasks, locate the task job you want to edit and click the view icon.
- On the View scheduled task page, click Edit task in the upper right corner.
- Make your required changes and click Save changes.
Delete a scheduled task
- In the console, go to Tasks and switch to the Scheduled Tasks tab.
- Locate the scheduled task job you want to delete and click the trashcan icon.
- Confirm that you want to remove the scheduled task.