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,