Install and configure AuditD.
Set hash_behaviour=merge
in your ansible.cfg file.
If False
, do not run tasks in this role.
If True
, run tasks in this role.
aspects_packages is used to install cronie-anacron
on OracleLinux 6. The Vagrant box I used while testing did not have any crontab utility installed.
If you don't want to use aspects_packages
, just set aspects_packages_enabled: False
.
Whether, or not, to override the /etc/audit/auditd.conf
file.
Default: False
The values with which to override the /etc/audit/auditd.conf
file.
Default: {}
aspects_auditd_override_auditd_conf_values:
itema:
enabled: True
block: |
key = value
key = value
key = value
Whether, or not, to override the /etc/audit/audit.rules
file.
Default: False
The values with which to override the /etc/audit/audit.rules
file.
Default: {}
aspects_auditd_override_audit_rules_values:
itema:
enabled: True
block: |
- D
# comment
Whether, or not, to override the /etc/audit/auditd.conf
file.
Default: False
The values with which to override the /etc/audit/audit-stop.rules
file.
Default: {}
aspects_auditd_override_audit_stop_rules_values:
itema:
enabled: True
block: |
- D
# comment
The values that go into the /etc/audit/rules.d/99-custom.rules
file.
Default:
aspects_auditd_rules_d_99_custom_values:
0000topcomment:
enabled: True
block: |
# This file is where you can story custom
# auditd rules.
- hosts:
- aspects_auditd
vars:
ansible_become: True
aspects_packages_enabled: True
aspects_auditd_enabled: True
aspects_auditd_rules_d_99_custom_values:
0001itema:
enabled: True
block: |
## First rule - delete all
-D
## Increase the buffers to survive stress events.
## Make this bigger for busy systems
-b 8192
## This determine how long to wait in burst of events
--backlog_wait_time 0
## Set failure mode to syslog
-f 1
roles:
- aspects_auditd
MIT