summaryrefslogtreecommitdiff
path: root/manifests/system.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-26 11:31:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-26 11:31:22 -0300
commitdb85b89742382894cb5736fa6a654e92dc92bf20 (patch)
treefa3e27e1b01b11c785490a08c9399f6ccedfb7e4 /manifests/system.pp
parent012f17f3f9acf8fc6f18a832715a751e379693ca (diff)
downloadpuppet-mail-db85b89742382894cb5736fa6a654e92dc92bf20.tar.gz
puppet-mail-db85b89742382894cb5736fa6a654e92dc92bf20.tar.bz2
Major refactor to enhance per-subsystem config isolation
Diffstat (limited to 'manifests/system.pp')
-rw-r--r--manifests/system.pp71
1 files changed, 14 insertions, 57 deletions
diff --git a/manifests/system.pp b/manifests/system.pp
index 53ec12f..e48f52e 100644
--- a/manifests/system.pp
+++ b/manifests/system.pp
@@ -10,84 +10,41 @@ class mail::system {
'': { $postfix_mynetworks = "127.0.0.0/8" }
}
- case $postfixadmin_database_password {
- '': { fail("You need to define \$postfixadmin_database_password host config") }
- }
-
- case $postfixadmin_setup_hash {
- '': {
- warning("You need to define \$postfixadmin_setup_hash host config")
- $postfixadmin_setup_hash = 'changeme'
- }
- }
-
- case $postfixadmin_database_user {
- '': { $postfixadmin_database_user = "postfix" }
- }
-
- case $postfixadmin_database_host {
- '': { $postfixadmin_database_host = "localhost" }
- }
-
- case $postfixadmin_database_name {
- '': { $postfixadmin_database_name= "postfix" }
- }
-
# Module requirements
include postfix
- include database
include ssl::mail
- # Subsystems
+ # Common subsystems
include mail::packages
include mail::base
- include mail::sasl
include mail::tls
- include mail::dovecot
include mail::amavisd
include mail::header_checks
- include mail::postfixadmin
- include mail::web
include mail::clamav
+ # Virtual mail system
+ case $mail_virtual {
+ true: {
+ include mail::virtual
+ }
+ default: {
+ include mail::regular
+ }
+ }
+
# Sympa mailing list manager
case $mail_sympa {
true: {
-
- case $sympa_database_password {
- '': { fail("You need to define \$sympa_database_password host config") }
- }
-
- case $sympa_database_name {
- '': { $sympa_database_name= "sympa" }
- }
-
- case $sympa_database_host {
- '': { $sympa_database_host = "localhost" }
- }
-
- case $sympa_subdomain {
- '': { $sympa_subdomain = "lists" }
- }
-
- case $sympa_listmasters {
- '': { $sympa_listmasters = "listmaster@${fqdn}" }
- }
-
- case $sympa_lang {
- '': { $sympa_lang = "en_US" }
- }
-
include mail::sympa
- include mail::web::sympa
- include mail::packages::sympa
+ }
+ default: {
+ include mail::regexps
}
}
# Schleuder mailing list manager
case $mail_schleuder {
true: {
- include mail::packages::schleuder
include mail::schleuder
}
}