logwatch: Services are now configurable via Puppet.

This commit is contained in:
Ossi Herrala 2015-03-11 12:13:32 +00:00
parent 570e0b397c
commit c323ef50d2
2 changed files with 9 additions and 0 deletions

View file

@ -12,6 +12,10 @@
# Logwatch detail level for report. Valid values are # Logwatch detail level for report. Valid values are
# from 0 to 10. # 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 { class logwatch {
case $::kernel { case $::kernel {

View file

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