summaryrefslogtreecommitdiff
path: root/manifests/base.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-11-10 13:51:55 -0500
committerMicah Anderson <micah@riseup.net>2011-11-10 13:51:55 -0500
commitcab934f909690ce57e222a2ed5d6a53c74679191 (patch)
treedbe62cf0ed1e56cb24de05f57539aff57992aea5 /manifests/base.pp
parent9a7d3591d4e39e5be5d8612ab519252583f35314 (diff)
add dovecot::config::file to be able to handle the different /etc/dovecot/conf.d files (similar to nginx/apache module)
Diffstat (limited to 'manifests/base.pp')
-rw-r--r--manifests/base.pp19
1 files changed, 13 insertions, 6 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index e275a99..949935e 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -1,10 +1,5 @@
class dovecot::base {
-
- package { 'dovecot':
- alias => 'dovecot',
- ensure => installed,
- }
-
+
file { '/etc/dovecot.conf':
source => [ "puppet:///modules/site-dovecot/config/${fqdn}/dovecot.conf",
"puppet:///modules/site-dovecot/config/${dovecot::type}/dovecot.conf",
@@ -15,6 +10,13 @@ class dovecot::base {
notify => Service['dovecot'],
owner => root, group => mail, mode => 0640;
}
+
+ file { 'config_dir':
+ path => '/etc/dovecot/conf.d',
+ ensure => directory,
+ require => Package['dovecot'],
+ owner => dovecot, group => 0, mode => 0755;
+ }
file {
'/var/log/dovecot':
@@ -29,6 +31,11 @@ class dovecot::base {
before => Service['dovecot'],
owner => root, group => dovecot, mode => 0660;
}
+
+ package { 'dovecot':
+ alias => 'dovecot',
+ ensure => installed,
+ }
include dovecot::logrotate