Puppet Class: isp3node::postfix::ssl

Defined in:
manifests/postfix/ssl.pp

Summary

Configure Postfix SSL Script

Overview

Points postfix ssl configuration to the local installed ssl certificate If managed through hiera instead of obtained via LE, also adds a subscription to the certificate file for postfix service restart

Examples:

include isp3node::postfix::ssl


9
10
11
12
13
14
15
16
17
# File 'manifests/postfix/ssl.pp', line 9

class isp3node::postfix::ssl {
  postfix::config {
    'smtpd_tls_cert_file': value => "/etc/ssl/local/${facts['fqdn']}.bundle.crt";
    'smtpd_tls_key_file':  value => "/etc/ssl/local/${facts['fqdn']}.key";
  }
  unless (lookup('isp3node::base::ssl::letsencrypt', undef, undef, false)){
    File["/etc/ssl/local/${facts['fqdn']}.bundle.crt"] ~> Service['postfix']
  }
}