summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-12-12 17:55:39 +0100
committermh <mh@immerda.ch>2010-12-12 17:55:39 +0100
commitf06a31f8c166dfc520b2dd57f557f199fcc1d122 (patch)
tree2491650fe7a2282e17fabb05437b1859afa3bb9f
parent98019aa7083ccdd2a2451be74f1a6c61ed14ee89 (diff)
make dovecot_type a parametrized class variable
-rw-r--r--manifests/base.pp2
-rw-r--r--manifests/centos.pp2
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/sql.pp2
4 files changed, 4 insertions, 3 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index d3d0ed9..44f0463 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -5,7 +5,7 @@ class dovecot::base {
file{'/etc/dovecot.conf':
source => [ "puppet:///modules/site-dovecot/config/${fqdn}/dovecot.conf",
- "puppet:///modules/site-dovecot/config/${dovecot_type}/dovecot.conf",
+ "puppet:///modules/site-dovecot/config/${dovecot::dovecot_type}/dovecot.conf",
"puppet:///modules/site-dovecot/config/dovecot.conf",
"puppet:///modules/dovecot/config/${operatingsystem}/dovecot.conf",
"puppet:///modules/dovecot/config/dovecot.conf" ],
diff --git a/manifests/centos.pp b/manifests/centos.pp
index 66de86a..22a6be0 100644
--- a/manifests/centos.pp
+++ b/manifests/centos.pp
@@ -1,7 +1,7 @@
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::dovecot_type}/dovecot",
"puppet:///modules/site-dovecot/sysconfig/dovecot",
"puppet:///modules/dovecot/sysconfig/dovecot" ],
require => Package['dovecot'],
diff --git a/manifests/init.pp b/manifests/init.pp
index 5196f87..75146fd 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,5 +1,6 @@
# we take rpms from fedora
class dovecot(
+ $dovecot_type = 'some_unkown_type',
$sqlite = false,
$pgsql = false,
$mysql = false,
diff --git a/manifests/sql.pp b/manifests/sql.pp
index 538f5d7..c07de17 100644
--- a/manifests/sql.pp
+++ b/manifests/sql.pp
@@ -1,7 +1,7 @@
class dovecot::sql {
file{'/etc/dovecot-sql.conf':
source => [ "puppet:///modules/site-dovecot/sql/${fqdn}/dovecot-sql.conf",
- "puppet:///modules/site-dovecot/sql/${dovecot_type}/dovecot-sql.conf",
+ "puppet:///modules/site-dovecot/sql/${dovecot::dovecot_type}/dovecot-sql.conf",
"puppet:///modules/site-dovecot/sql/dovecot-sql.conf",
"puppet:///modules/site/sql/${operatingsystem}/dovecot-sql.conf",
"puppet:///modules/site/sql/dovecot-sql.conf" ],