Run ad-hoc tasks on target Linux and Windows hosts to install Puppet agents, manage packages or system services, or to execute shell commands.
To run tasks on Linux hosts, your SSH credentials must be for the root account on each target host. See Secure Shell (SSH).
On the dashboard menu.
On any hosts summary page.
On any host or package details page.
When selecting to run a task from either a summary or details page, some of the selected hosts may not be eligible to run the task on. An eligible host must be accessible using the SSH or WinRM credentials you added, or if running the install Puppet agent task, an eligible host doesn't have the agent installed.
Install Puppet agents
Install a Puppet Enterprise agent to regularly pull configuration catalogs from a Puppet master, and apply them to your target Linux or Windows hosts. The agent maintains the host configuration you want.
cacert_content parameter, the task fails, and you must enter a valid value for the task to run. An empty value is not accepted.| Parameter | Description |
|---|---|
cacert_content | The master CA certificate content (optional). If not specified, the master's identity is not verified during the agent installation. |
certname | The unique certificate name for the Puppet agent (optional). |
custom_attribute | The custom attribute setting added to puppet.conf and included in the custom_attributes section of csr_attributes.yaml. For more information, see custom attributes. Important: Values must be entered as an array. |
dns_alt_names | The alternative DNS names for generating the agent certificate. |
environment | The environment to install with the Puppet agent (optional). |
extension_request | The extension attribute setting added to puppet.conf and included in the extension_requests section of csr_attributes.yaml. For more information, see extension requests. Important: Values must be entered as an array. |
master | The required hostname for the Puppet master. The FQDN must be fully resolvable by the node on which you're installing the agent. |
Manage packages
Install, upgrade, or uninstall packages on discovered hosts without installing an agent.
APT or YUM for Linux hosts.
Chocolatey for Windows hosts.
| Parameter | Description |
|---|---|
action | The action to be applied to the package:
|
name | The name of the package. |
provider | The name of the provider to use for managing or inspecting the package. |
version | The version, and if applicable, the release value of the package. A version number range or a semver pattern are not permitted. For example, to install the bash-4.1.2-29.el6.x86_64.rpm package, enter 4.1.2-29.el6. Tip: To install or upgrade to the latest version of a package, leave the version parameter blank. |
Run shell commands
Execute an arbitrary shell command on discovered hosts without installing an agent.
| Paramter | Description |
|---|---|
command | The command to execute on the target hosts. Linux example:
To execute commands, Windows tasks use the command prompt. To run PowerShell commands, you must invoke PowerShell. For example: |
failonfail | By default, the task fails when the command returns a non-zero. To disable this default setting, select the checkbox. |
interleave | By default, content from stdout and stderr is interleaved. To disable this default setting, select the checkbox. |
Manage system services
Manage and inspect system services on discovered hosts.
| Parameter | Description |
|---|---|
action | The action to be applied to the service:
|
name | The name of the service. |
provider | The name of the provider to use for managing or inspecting the service. |