Fetch local config file from fileserver to Dovecot 2.
This commit is contained in:
parent
17570b8e36
commit
94f6453762
2 changed files with 15 additions and 1 deletions
0
dovecot/files/empty
Normal file
0
dovecot/files/empty
Normal file
|
@ -12,7 +12,8 @@ class dovecot::server::v2 {
|
||||||
service { "dovecot":
|
service { "dovecot":
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
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":
|
file { "/etc/dovecot/conf.d/98-puppet.conf":
|
||||||
|
@ -25,6 +26,19 @@ class dovecot::server::v2 {
|
||||||
require => Package["dovecot"],
|
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 {
|
if $dovecot_ssl_csr {
|
||||||
file { "$dovecot_ssl_dir/private/dovecot.csr":
|
file { "$dovecot_ssl_dir/private/dovecot.csr":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
|
Loading…
Add table
Reference in a new issue