Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-129309

cannot manage rhel9.7/10.1 or earlier - unexpected character - line database=file

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • rhel-system-roles
    • 0
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Bug Fix
    • Hide
      Cause:
      Consequence:
      Fix:
      Result:
      Show
      Cause: Consequence: Fix: Result:
    • 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.

      spetros@redhat.com rh-ee-alakatos fyi

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: