summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-12-12 17:17:03 +0100
committermh <mh@immerda.ch>2010-12-12 17:17:03 +0100
commit9a3b45399e4c02c92a3006d7a42063d44a16da76 (patch)
treed2e718eaf43d7bdaf2a284c302304cce2ed6d4c9 /manifests/init.pp
parent93351a1ea80f144563830910e4689cc4121fe804 (diff)
refactor classes to use parametrized classes
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp18
1 files changed, 10 insertions, 8 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6c9093d..542aa58 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,24 +1,26 @@
-# modules/skeleton/manifests/init.pp - manage dovecot stuff
-# Copyright (C) 2009 admin@immerda.ch
-#
-
# we take rpms from fedora
-class dovecot {
+class dovecot(
+ $sqlite = false,
+ $pgsql = false,
+ $mysql = false,
+ $munin_checks = true,
+ $manage_shorewall = true
+){
case $operatingsystem {
centos: { include dovecot::centos }
default: { include dovecot::base }
}
- if $dovecot_sql_sqlite or $dovecot_sql_pgsql or $dovecot_sql_mysql {
+ if $dovecot::sqlite or $dovecot::pgsql or $dovecot::mysql {
include dovecot::sql
}
- if $use_shorewall {
+ if $dovecot::manage_shorewall {
include shorewall::rules::pop3
include shorewall::rules::imap
}
- if $use_munin {
+ if $dovecot::munin_checks {
include dovecot::munin
}
}