From 0386ce64d8372bcfafb697559adaeb027c49e4d7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 23 Dec 2013 23:30:44 -0200 Subject: Notify dovecot on cert change --- manifests/tls.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3