Fetch local config file from fileserver to Dovecot 2.

This commit is contained in:
Ossi Herrala 2012-09-20 10:08:29 +00:00
parent 17570b8e36
commit 94f6453762
2 changed files with 15 additions and 1 deletions

0
dovecot/files/empty Normal file
View file

View file

@ -12,7 +12,8 @@ class dovecot::server::v2 {
service { "dovecot":
ensure => running,
enable => true,
require => File["/etc/dovecot/conf.d/98-puppet.conf"],
require => File["/etc/dovecot/conf.d/98-puppet.conf",
"/etc/dovecot/conf.d/99-local.conf"],
}
file { "/etc/dovecot/conf.d/98-puppet.conf":
@ -25,6 +26,19 @@ class dovecot::server::v2 {
require => Package["dovecot"],
}
file { "/etc/dovecot/conf.d/99-local.conf":
ensure => present,
source => [
"puppet:///files/dovecot/local.conf",
"puppet:///modules/dovecot/empty",
],
mode => "0644",
owner => "root",
group => "root",
notify => Service["dovecot"],
require => Package["dovecot"],
}
if $dovecot_ssl_csr {
file { "$dovecot_ssl_dir/private/dovecot.csr":
ensure => present,