summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-03-20 10:14:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-03-20 10:14:14 -0300
commitd130ff86ad08f5e73fa01f21a7ddfcc56e8b2cea (patch)
treeeca7cc17b2ed4e5ef5020d294a88b76b50cbddba
parent95c0c81bd63cc64200ba7041cff9d82e310ee158 (diff)
downloadpuppet-mail-d130ff86ad08f5e73fa01f21a7ddfcc56e8b2cea.tar.gz
puppet-mail-d130ff86ad08f5e73fa01f21a7ddfcc56e8b2cea.tar.bz2
New ssl::cert scheme
-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,
}
}