4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'manifests/config.pp', line 4
class auditd::config inherits auditd {
file { $auditd::auditd_file:
ensure => $auditd::auditd_file_ensure,
content => template('auditd/auditd.conf.erb'),
owner => $auditd::auditd_file_owner,
group => $auditd::auditd_file_group,
mode => $auditd::auditd_file_mode,
}
file { $auditd::auditd_rules_file:
ensure => $auditd::auditd_rules_file_ensure,
content => template('auditd/auditd.rules.erb'),
owner => $auditd::auditd_rules_file_owner,
group => $auditd::auditd_rules_file_group,
mode => $auditd::auditd_rules_file_mode,
notify => Exec['augenrules'],
}
exec { 'augenrules':
command => ['/sbin/augenrules', '--load'],
user => $auditd::auditd_rules_file_owner,
refreshonly => true,
}
}
|