tripleo-ansible/tripleo_ansible/roles/tripleo_auditd/templates/audit.rules.j2
Cédric Jeanneret 3ed814e21f New role, replacing puppet-auditd
It allows to take the same rules as the former puppet-auditd, ensuring
the order is respected.

Note: this isn't a 1:1 port of the puppet-auditd. While the actual rules
parameter is 100% compatible, the auditd configuration isn't, and uses a
simple dict to apply configurations (tripleo_auditd_config).

Closes-Bug: #1964733
Change-Id: I725de465cfe62550288f8780057f54443722e6c1
2022-08-08 05:57:03 +00:00

7 lines
231 B
Django/Jinja

# File managed by tripleo_ansible
{% set rules = tripleo_auditd_rules|dict2items|sort(attribute='value.order') %}
{% for rule in rules %}
# {{ rule['value']['order'] }} {{ rule['key'] }}
{{ rule['value']['content'] }}
{% endfor %}