tom-krieger / cis_security_hardening

Define a complete security baseline and monitor the baseline's rules. The definition of the baseline should be done in Hiera. The purpose of the module is to give the ability to setup a complete security baseline which not necessarily have to stick to industry security guides like the CIS benchmarks.
Apache License 2.0
18 stars 12 forks source link

auditd_usermod_use.pp "parameter 'target' expects a String value" #58

Closed jnbolk closed 1 year ago

jnbolk commented 1 year ago

Error while evaluating a Resource Statement, Concat::Fragment[watch usermod command rule 1]: parameter 'target' expects a String value, got Undef

This error occurs using usermod_use, setfacl_use, chcon_use, chacl_use

} concat::fragment { 'watch umount rule 1':

  order   => '207',

  target  => $cis_security_hardening::rules::auditd_init::rules_file,

  content => "-a always,exit -F path=/usr/bin/umount -F auid>=${uid} -F auid!=4294967295 -k privileged-mount",

}