diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/centos.pp | 11 | ||||
-rw-r--r-- | manifests/init.pp | 5 |
2 files changed, 15 insertions, 1 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp new file mode 100644 index 0000000..66de86a --- /dev/null +++ b/manifests/centos.pp @@ -0,0 +1,11 @@ +class dovecot::centos inherits dovecot::base { + file{'/etc/sysconfig/dovecot': + source => [ "puppet:///modules/site-dovecot/sysconfig/${fqdn}/dovecot", + "puppet:///modules/site-dovecot/sysconfig/${dovecot_type}/dovecot", + "puppet:///modules/site-dovecot/sysconfig/dovecot", + "puppet:///modules/dovecot/sysconfig/dovecot" ], + require => Package['dovecot'], + notify => Service['dovecot'], + owner => root, group => mail, mode => 0640; + } +} diff --git a/manifests/init.pp b/manifests/init.pp index f0f4b29..6c9093d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,7 +4,10 @@ # we take rpms from fedora class dovecot { - include dovecot::base + case $operatingsystem { + centos: { include dovecot::centos } + default: { include dovecot::base } + } if $dovecot_sql_sqlite or $dovecot_sql_pgsql or $dovecot_sql_mysql { include dovecot::sql |