Skip to content

SLE16 fix ensure_logrotate_activated to work with /etc configuration#14680

Draft
teacup-on-rockingchair wants to merge 1 commit intoComplianceAsCode:masterfrom
teacup-on-rockingchair:sle16_ensure_logrotate_activated
Draft

SLE16 fix ensure_logrotate_activated to work with /etc configuration#14680
teacup-on-rockingchair wants to merge 1 commit intoComplianceAsCode:masterfrom
teacup-on-rockingchair:sle16_ensure_logrotate_activated

Conversation

@teacup-on-rockingchair
Copy link
Copy Markdown
Contributor

@teacup-on-rockingchair teacup-on-rockingchair commented Apr 27, 2026

Description:

  • Make sure on sle16 we use /etc to apply and verify compliance to the rule, while /usr/etc maight be use only in case /etc files do not exist

Rationale:

  • Change oval to work with /etc folder
  • add test of missing configuration file in /etc folder
  • make sure remediations copy defulat config from /usr/etc but apply in /etc

Review Hints:

Needs PR #14438 to be integrated to use the appropriate macros

Make sure on sle16 we use /etc to apply and verify compliance to the rule, while /usr/etc maight be use only in case /etc files do not exist
@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Apr 27, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 27, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@teacup-on-rockingchair teacup-on-rockingchair added Ansible Ansible remediation update. OVAL OVAL update. Related to the systems assessments. Bash Bash remediation update. SLES SUSE Linux Enterprise Server product related. labels Apr 27, 2026
@teacup-on-rockingchair teacup-on-rockingchair added this to the 0.1.81 milestone Apr 27, 2026
@github-actions
Copy link
Copy Markdown

This datastream diff is auto generated by the check Compare DS/Generate Diff

Click here to see the full diff
bash remediation for rule 'xccdf_org.ssgproject.content_rule_ensure_logrotate_activated' differs.
--- xccdf_org.ssgproject.content_rule_ensure_logrotate_activated
+++ xccdf_org.ssgproject.content_rule_ensure_logrotate_activated
@@ -2,6 +2,8 @@
 if rpm --quiet -q kernel-core && { rpm --quiet -q logrotate; }; then
 
 LOGROTATE_CONF_FILE='/etc/logrotate.conf'
+
+
 
 
 if ! rpm -q --quiet "crontabs" ; then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ansible Ansible remediation update. Bash Bash remediation update. do-not-merge/work-in-progress Used by openshift-ci bot. OVAL OVAL update. Related to the systems assessments. SLES SUSE Linux Enterprise Server product related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant