Skip to content

Commit

Permalink
variables logrotate
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed Oct 18, 2016
1 parent 82f785f commit a47c2ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$logrotate_compress = true,
$logrotate_missingok = true,
$logrotate_notifempty = true,
$logrotate_frequency = 'weekly',
) inherits audit::params {

package { $audit::params::pkg_audit:
Expand Down Expand Up @@ -51,10 +52,11 @@
logrotate::logs { 'audit':
ensure => present,
log => [ '/var/log/audit/audit.log' ],
rotate => '4',
compress => true,
missingok => true,
notifempty => true,
rotate => $logrotate_rotate,
compress => $logrotate_compress,
missingok => $logrotate_missingok,
notifempty => $logrotate_notifempty,
frequecy => $logrotate_frequency,
}
}
}

0 comments on commit a47c2ce

Please sign in to comment.