Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions articles/automatic-software-install-in-fleet.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ SELECT 1 FROM apps WHERE bundle_identifier = 'com.adobe.Reader' AND version_comp

![Install software modal](../website/assets/images/articles/automatic-software-install-install-software.png)

Upon failure of the selected policy, the selected software installation will be triggered.
When a host fails the selected policy, this will trigger the software to be installed on the host.

> Adding a software automation to a policy, or changing the automated software title, will reset the policy's host counts.
If the software install fails, you can reset a software automation and trigger the install on all targeted hosts again. To do this, deselect the policy in the **Policies > Manage automations** modal, select **Save**, and then reselect the policy. This will reset the policy's host passing and failing host counts and retrigger the software automations.

## How does it work?

Expand Down
4 changes: 2 additions & 2 deletions articles/policy-automation-run-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Fleet allows users to upload scripts executed on macOS, Windows, and Linux hosts
2. **Add a policy**: Navigate to **Policies**, select the team you want the policy to run on, and click **Add policy**. Follow the instructions to set up a custom policy or use one baked into Fleet. You can also add a script automation to an existing policy.
3. **Set the automation**: In the previous step's **Policies** list view you navigated to, click **Manage automations**, then click **Run script**. Check the box beside the policy (or policies) for which you want to run scripts, then select a script in the drop-down that appears next to the policy name. When you're done associating policies to scripts, click **Save**.

The next time a fleetd host fails the policy you added automation for, Fleet will queue up the script you selected and run it on the host as if you had requested a script run manually.
When a host fails the selected policy, this will trigger the script to run on the host.

> Adding a script to a policy will reset the policy's host counts.
If the script fails, you can reset a script automation and trigger the script to run on all targeted hosts again. To do this, deselect the policy in the **Policies > Manage automations** modal, select **Save**, and then reselect the policy. This will reset the policy's host passing and failing host counts and retrigger the script automation.

## How does it work?

Expand Down
2 changes: 2 additions & 0 deletions docs/REST API/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7480,6 +7480,8 @@ Only one of `labels_include_any` or `labels_exclude_any` can be specified. If ne

Resets [automation](https://fleetdm.com/docs/using-fleet/automations#policy-automations) status for *all* hosts failing the specified policies. On the next automation run, any failing host will be considered newly failing.

Currently, this API endpoint only resets ticket and webhook automations.

`POST /api/v1/fleet/automations/reset`

#### Parameters
Expand Down
Loading