Merged in oherrala/puppet (pull request #57)

logwatch: Services are now configurable via Puppet.
This commit is contained in:
Timo Mäkinen 2015-03-11 14:29:16 +02:00
commit f517230310
2 changed files with 9 additions and 0 deletions

View file

@ -12,6 +12,10 @@
# Logwatch detail level for report. Valid values are
# from 0 to 10.
#
# $logwatch_services:
# Array of logwatch services to enable and disable. For example
# [ "-pam_unix" ] to turn off pam_unix service.
#
class logwatch {
case $::kernel {

View file

@ -8,3 +8,8 @@ MailFrom = <%= @logwatch_mailfrom %>
<% if @logwatch_level -%>
Detail = <%= @logwatch_level %>
<% end -%>
<% if @logwatch_services -%>
<% @logwatch_services.each do |val| -%>
Service = <%= val %>
<% end -%>
<% end -%>