diff options
Diffstat (limited to 'manifests/sql.pp')
-rw-r--r-- | manifests/sql.pp | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/manifests/sql.pp b/manifests/sql.pp index a231239..fc9a864 100644 --- a/manifests/sql.pp +++ b/manifests/sql.pp @@ -11,13 +11,21 @@ class dovecot::sql { owner => root, group => 0, mode => 0600; } - if $dovecot::mysql { - include ::dovecot::sql::mysql - } - if $dovecot::pgsql { - include ::dovecot::sql::pgsql - } - if $dovecot::sqlite { - include ::dovecot::sql::sqlite + 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: {} } } |