summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/tls.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/tls.pp b/manifests/tls.pp
index 621cdbe..cc917df 100644
--- a/manifests/tls.pp
+++ b/manifests/tls.pp
@@ -10,9 +10,10 @@ class mail::tls {
$mail_virtual = hiera('mail::virtual', false)
# SSL certificate
- ssl::cert { "cert":
+ ssl::cert { "${::domain}":
group => 'postfix',
privmode => '0640',
+ main => true,
notify => $mail_virtual ? {
false => Service['postfix'],
default => Service['postfix', 'dovecot'],
@@ -20,7 +21,7 @@ class mail::tls {
}
# Check SSL certificate
- ssl::check { "$domain":
+ ssl::check { "${::domain}":
file => true,
}
}