From: Silvio Rhatto Date: Tue, 24 Dec 2013 01:30:44 +0000 (-0200) Subject: Notify dovecot on cert change X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0386ce64d8372bcfafb697559adaeb027c49e4d7;p=puppet-mail.git Notify dovecot on cert change --- diff --git a/manifests/tls.pp b/manifests/tls.pp index d4d9246..621cdbe 100644 --- a/manifests/tls.pp +++ b/manifests/tls.pp @@ -7,11 +7,16 @@ class mail::tls { postfix::config { "smtpd_tls_security_level": value => 'may' } postfix::config { "smtp_tls_security_level": value => 'may' } + $mail_virtual = hiera('mail::virtual', false) + # SSL certificate ssl::cert { "cert": group => 'postfix', privmode => '0640', - notify => Service['postfix'], + notify => $mail_virtual ? { + false => Service['postfix'], + default => Service['postfix', 'dovecot'], + } } # Check SSL certificate