-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd25dfd
commit a777c31
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
id: "TRNT01" | ||
name: A host check | ||
group: Trento | ||
description: | | ||
Trento agent service is enabled and running | ||
remediation: | | ||
## Abstract | ||
If not enabled, trento-agent service will not start automatically after reboots, affecting Trento's functionalities. | ||
To enable the service, run: | ||
``` | ||
systemctl enable trento-agent | ||
``` | ||
when: env.target_type == "host" | ||
|
||
facts: | ||
- name: trento_agent_service_state | ||
gatherer: systemd | ||
argument: trento-agent | ||
|
||
values: | ||
- name: expected_trento_agent_service_state | ||
default: active | ||
|
||
expectations: | ||
- name: trento_agent_service_state_active | ||
expect: facts.trento_agent_service_state == values.expected_trento_agent_service_state | ||
failure_message: Trento agent service was expected to be active (enabled and running) but returned value is '${facts.trento_agent_service_state}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters