logwatch: Services are now configurable via Puppet.
This commit is contained in:
parent
570e0b397c
commit
c323ef50d2
2 changed files with 9 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
Loading…
Add table
Reference in a new issue