From 94f64537621f4b559243d3a6ef93d37d7be8843d Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Thu, 20 Sep 2012 10:08:29 +0000 Subject: [PATCH] Fetch local config file from fileserver to Dovecot 2. --- dovecot/files/empty | 0 dovecot/manifests/dovecot2.pp | 16 +++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 dovecot/files/empty diff --git a/dovecot/files/empty b/dovecot/files/empty new file mode 100644 index 0000000..e69de29 diff --git a/dovecot/manifests/dovecot2.pp b/dovecot/manifests/dovecot2.pp index 3b1bf73..3231398 100644 --- a/dovecot/manifests/dovecot2.pp +++ b/dovecot/manifests/dovecot2.pp @@ -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,