Added variable for setting logwatch mail recipient

This commit is contained in:
Ossi Salmi 2013-03-26 13:43:08 +02:00
parent 22f51b58f8
commit d42b2989b8

View file

@ -1,5 +1,10 @@
# Install logwatch.
#
# === Global variables
#
# $logwatch_mailto
# Logwatch mail recipient.
#
class logwatch {
case $::kernel {
@ -13,4 +18,15 @@ class logwatch {
}
}
if $logwatch_mailto {
file { "/etc/logwatch/conf/logwatch.conf":
ensure => present,
mode => "0644",
owner => "root",
group => "root",
content => "MailTo = ${logwatch_mailto}\n",
require => Package["logwatch"],
}
}
}