]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Notify dovecot on cert change
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 24 Dec 2013 01:30:44 +0000 (23:30 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 24 Dec 2013 01:30:44 +0000 (23:30 -0200)
manifests/tls.pp

index d4d9246d1e1662280c303843e01e040f2a84cde0..621cdbef3165fef1fa00bdbe98ddd17865596fb5 100644 (file)
@@ -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