forked from ansible-lockdown/RHEL9-CIS
improvments v2
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
0fc418a222
commit
4f566974c9
15 changed files with 110 additions and 58 deletions
|
|
@ -0,0 +1,7 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.3 Ensure password complexity is configured
|
||||
minclass = {{ rhel9cis_passwd_minclass }}
|
||||
dcredit = {{rhel9cis_passwd_dcredit }}
|
||||
ucredit = {{ rhel9cis_passwd_ucredit }}
|
||||
ocredit = {{ rhel9cis_passwd_ocredit }}
|
||||
lcredit = {{ rhel9cis_passwd_lcredit }}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.6 Ensure password dictionary check is enabled
|
||||
dictcheck = {{ rhel9cis_passwd_dictcheck_value }}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.1 Ensure password number of changed characters is configured
|
||||
difok = {{ rhel9cis_passwd_difok_value }}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.2 Ensure minimum password length is configured
|
||||
minlen = {{ rhel9cis_passwd_minlen_value }}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.5 Ensure password maximum sequential characters is configured
|
||||
maxsequence = {{ rhel9cis_passwd_maxsequence_value }}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.7 Ensure password quality checking is enforced
|
||||
enforcing = {{ rhel9cis_passwd_quality_enforce_value }}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.4 Ensure password same consecutive characters is configured
|
||||
maxrepeat = {{ rhel9cis_passwd_maxrepeat_value }}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.8 Ensure password quality is enforced for the root user
|
||||
{{ rhel9cis_passwd_quality_enforce_root_value }}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# File created for CIS benchmark
|
||||
# CIS rule 6_2_2_2
|
||||
[Journal]
|
||||
ForwardToSyslog=no
|
||||
8
templates/etc/systemd/journald.conf.d/rotation.conf.j2
Normal file
8
templates/etc/systemd/journald.conf.d/rotation.conf.j2
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# File created for CIS benchmark
|
||||
# CIS rule 6_2_1_3
|
||||
[Journal]
|
||||
SystemMaxUse={{ rhel9cis_journald_systemmaxuse }}
|
||||
SystemKeepFree={{ rhel9cis_journald_systemkeepfree }}
|
||||
RuntimeMaxUse={{ rhel9cis_journald_runtimemaxuse }}
|
||||
RuntimeKeepFree={{ rhel9cis_journald_runtimekeepfree }}
|
||||
MaxFileSec={{ rhel9cis_journald_maxfilesec }}
|
||||
11
templates/etc/systemd/journald.conf.d/storage.conf.j2
Normal file
11
templates/etc/systemd/journald.conf.d/storage.conf.j2
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# File created for CIS benchmark
|
||||
[Journal]
|
||||
{% if rhel9cis_rule_6_2_2_3 %}
|
||||
# Set compress CIS rule 6_2_2_3
|
||||
Compress=yes
|
||||
{% endif %}
|
||||
|
||||
{% if rhel9cis_rule_6_2_2_4 %}
|
||||
# Set persistent storage CIS rule 6_2_2_4
|
||||
Storage=persistent
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue