summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/tls.pp7
1 files changed, 6 insertions, 1 deletions
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