kemra102 / puppet-auditd

Manage the audit daemon and it's rules.
BSD 2-Clause "Simplified" License
14 stars 54 forks source link

Custom rules file location breaks module #42

Closed dmnfortytwo closed 6 years ago

dmnfortytwo commented 6 years ago

How to reproduce: add to hiera (or to class call): auditd::rules_file: /etc/audit/rules.d/audit.rules What is expected: puppet applies ok, rules are stored in /etc/audit/rules.d/audit.rules What really happens: Warning: /Stage[main]/Auditd/Auditd::Rule[ignore exe=/bin/uname]/Concat::Fragment[auditd_fragment_ignore exe=/bin/uname]/Concat_fragment[auditd_fragment_ignore exe=/bin/uname]: Target Concat_file with path of /etc/audit/audit.rules not found in the catalog How to fix:

+++ rule.pp     2018-03-12 14:02:29.705495750 +0000
@@ -13,7 +13,7 @@
   validate_string($body)

   concat::fragment{ "auditd_fragment_${name}":
-    target  => $auditd::params::rules_file,
+    target  => $auditd::rules_file,
     order   => $order,
     content => $body,
   }
kemra102 commented 6 years ago

This should be fixed after merging #43 - if not please re-open.