Skip to content

Commit

Permalink
Storing max_log_file under rhel9cis_auditd dict variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Ionut Pruteanu <ionut.pruteanu@siemens.com>
  • Loading branch information
ipruteanu-sie committed Dec 20, 2023
1 parent 8405e67 commit 88ffe32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -525,26 +525,19 @@ rhel9cis_auditd:
space_left_action: email
action_mail_acct: root
admin_space_left_action: halt
# The max_log_file parameter should be based on your sites policy.
max_log_file: 10
max_log_file_action: keep_logs

# The audit_back_log_limit value should never be below 8192
rhel9cis_audit_back_log_limit: 8192

# The max_log_file parameter should be based on your sites policy
rhel9cis_max_log_file_size: 10

### 4.1.3.x audit template
update_audit_template: false

## Advanced option found in auditd post
rhel9cis_allow_auditd_uid_user_exclusions: false

# This can be used to configure other keys in auditd.conf
rhel9cis_auditd_extra_conf: {}
# Example:
# rhel9cis_auditd_extra_conf:
# admin_space_left: '10%'

## Preferred method of logging
## Whether rsyslog or journald preferred method for local logging
## Affects rsyslog cis 4.2.1.3 and journald cis 4.2.2.5
Expand Down
2 changes: 1 addition & 1 deletion tasks/section_4/cis_4.1.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ansible.builtin.lineinfile:
path: /etc/audit/auditd.conf
regexp: "^max_log_file( |=)"
line: "max_log_file = {{ rhel9cis_max_log_file_size }}"
line: "max_log_file = {{ rhel9cis_auditd['max_log_file'] }}"
notify: Restart auditd
when:
- rhel9cis_rule_4_1_2_1
Expand Down

0 comments on commit 88ffe32

Please sign in to comment.