postfix: Attempt a chain fix.

This commit is contained in:
Lari Huttunen 2013-03-05 17:03:29 +01:00
parent 5f3e6c481c
commit b20d06b37f
2 changed files with 18 additions and 0 deletions

View file

@ -32,6 +32,9 @@
# $postfix_cert:
# Path to SSL certificate. Defaults to puppet client certificate.
#
# $postfix_chain:
# Path to intermediary CA cert.
#
# $postgrey:
# Whether to run postgrey or not.
#
@ -81,6 +84,18 @@ class postfix {
notify => Service["postfix"],
}
if $postfix_chain {
file { "${ssl::certs}/chain.crt":
ensure => present,
source => $postfix_chain,
mode => "0644",
owner => "root",
group => "root",
require => Package["postfix"],
notify => Service["postfix"],
}
}
file { "${ssl::private}/postfix.key":
ensure => present,
source => $postfix_key,