summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-23 23:30:44 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-23 23:30:44 -0200
commit0386ce64d8372bcfafb697559adaeb027c49e4d7 (patch)
tree5e6355ff6381bb02dbe8abe23d1d63a9a3337841
parenta177c98309fb667f4c2a6455f9ee3c7652343c99 (diff)
downloadpuppet-mail-0386ce64d8372bcfafb697559adaeb027c49e4d7.tar.gz
puppet-mail-0386ce64d8372bcfafb697559adaeb027c49e4d7.tar.bz2
Notify dovecot on cert change
-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