# platform = multi_platform_almalinux,multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_sle
# reboot = true
# strategy = restrict
# complexity = low
# disruption = low

{{%- if product in ["ol7"] %}}
  {{%- set auditd_conf_path=audisp_conf_path + "/audispd.conf" %}}
{{%- else %}}
  {{%- set auditd_conf_path=audisp_conf_path + "/auditd.conf" %}}
{{%- endif %}}


{{{ bash_instantiate_variables("var_auditd_name_format") }}}

var_auditd_name_format="$(echo $var_auditd_name_format | cut -d \| -f 1)"

{{{set_config_file(path=auditd_conf_path,
                  parameter="name_format",
                  value="$var_auditd_name_format",
                  create=true,
                  insensitive=true,
                  separator=" = ",
                  separator_regex="\s*=\s*",
                  prefix_regex="^\s*", rule_id=rule_id)}}}
