-
Epic
-
Resolution: Unresolved
-
Undefined
-
None
-
[Epic]: cannot manage rhel9.7/10.1 or earlier - unexpected character - line database=file
-
Moderate
-
rhel-system-roles
-
None
-
Dev ack
-
False
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
Bug Fix
-
-
Proposed
-
Unspecified
-
Unspecified
-
Unspecified
-
None
The aide system role tests are giving this error
ERROR: /etc/aide.conf:12: unexpected character: ':' (line: 'database=file:@@{DBDIR}/aide.db.gz')
The config file is generated from this template: https://github.com/linux-system-roles/aide/blob/main/tests/files/aide-custom.conf.j2
From this block:
{% if ansible_facts['os_family'] == 'RedHat' and
ansible_facts['distribution_major_version'] in ['8','9'] %}
# The location of the database to be read.
database=file:@@{DBDIR}/aide.db.gz
{% else %}
# The location of the database to be read.
database_in=file:@@{DBDIR}/aide.db.gz
{% endif %}
CentOS 9 underwent a rebase because its previous version was significantly outdated. As part of that update, the database field was replaced with database_in.
Those changes will apply to RHEL 9.8/10.2.
You can find the relevant upstream changelog entry here: https://github.com/aide/aide/blob/master/ChangeLog#L241
The system role should detect if it needs to use database or database_in in the template depending on the os version.
- links to