summaryrefslogtreecommitdiff
path: root/manifests/sql/sqlite.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-09-02 16:31:32 -0400
committerMicah Anderson <micah@riseup.net>2011-09-02 16:31:32 -0400
commitefd742c81f629d653b9d9a29a400f37d0a44dee9 (patch)
treecee307ffd7d294a20ca00870c8806bfe1c7403b6 /manifests/sql/sqlite.pp
parent4ddd09c2a38bd6f491f6e3a10035bf2f514ab76b (diff)
the new version of dovecot (version 2) has a number of differences from version 1, so I added a $version class parameter (defaulting to 2) so we can have different configurations for the different versions.
for version 2, debian does have different sql packages, so we test the above variable before attempting to install the packages, rather than test for the $operatingsystem in sql.pp
Diffstat (limited to 'manifests/sql/sqlite.pp')
-rw-r--r--manifests/sql/sqlite.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/sql/sqlite.pp b/manifests/sql/sqlite.pp
index 5a2bb06..c2a848e 100644
--- a/manifests/sql/sqlite.pp
+++ b/manifests/sql/sqlite.pp
@@ -1,7 +1,9 @@
class dovecot::sql::sqlite {
- package { 'dovecot-sqlite':
- ensure => installed,
- before => File['/etc/dovecot-sql.conf'],
+ if $version == 2 {
+ package { 'dovecot-sqlite':
+ ensure => installed,
+ before => File['/etc/dovecot-sql.conf'],
+ }
}
}