-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use the right systemd service for remediations in EL 10+
EL 10 has a newer yggdrasil service for remediations, so instead of 'rhcd' the upstream name 'yggdrasil' is used. Hence: - create an helper variable for the service name depending on the EL version; since Insights is specific to RHEL, it is possible to assume the name based on the major version of the distribution - use the new variable when enabling or disabling the service for remediations - in the test case for remediation: - export the variables of the role as public, so the new private variable can be used - set an helper fact with the systemd service including the '.service' extension Fixes: CCT-1057 Signed-off-by: Pino Toscano <ptoscano@redhat.com>
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
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
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
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