summaryrefslogtreecommitdiff
path: root/manifests/sql.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/sql.pp')
-rw-r--r--manifests/sql.pp28
1 files changed, 12 insertions, 16 deletions
diff --git a/manifests/sql.pp b/manifests/sql.pp
index fc9a864..528fd94 100644
--- a/manifests/sql.pp
+++ b/manifests/sql.pp
@@ -11,21 +11,17 @@ class dovecot::sql {
owner => root, group => 0, mode => 0600;
}
- case $operatingsystem {
- centos: {
- if $dovecot::mysql {
- include ::dovecot::sql::mysql
- }
- if $dovecot::pgsql {
- include ::dovecot::sql::pgsql
- }
- if $dovecot::sqlite {
- include ::dovecot::sql::sqlite
- }
- }
- debian: {
- File['/etc/dovecot-sql.conf'] { path => '/etc/dovecot/dovecot-sql.conf' }
- }
- default: {}
+ if $dovecot::mysql {
+ include ::dovecot::sql::mysql
+ }
+ if $dovecot::pgsql {
+ include ::dovecot::sql::pgsql
+ }
+ if $dovecot::sqlite {
+ include ::dovecot::sql::sqlite
+ }
+
+ if $operatingsystem == 'Debian' {
+ File['/etc/dovecot-sql.conf'] { path => '/etc/dovecot/dovecot-sql.conf' }
}
}