Added variable for setting logwatch mail recipient
This commit is contained in:
parent
22f51b58f8
commit
d42b2989b8
1 changed files with 16 additions and 0 deletions
|
@ -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"],
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue