Enable daemon in sendmail::client if $mail_server is localhost
This commit is contained in:
parent
b55845e7b3
commit
cfc2d9fa3b
1 changed files with 12 additions and 0 deletions
|
@ -96,6 +96,18 @@ class sendmail::client inherits sendmail::common {
|
|||
require => Exec["make submit.cf"],
|
||||
}
|
||||
|
||||
case $::operatingsystem {
|
||||
"centos","redhat","fedora": {
|
||||
case $mail_server {
|
||||
"127.0.0.1","localhost": {
|
||||
File["/etc/sysconfig/sendmail"] {
|
||||
content => "DAEMON=yes\nQUEUE=1h\n",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue