summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-24 14:45:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-24 14:45:00 -0300
commit0949ad3387a9224c1ec5a7d6b9d43237e555d05a (patch)
tree8649f60afc700317482dedc5bd2f69082661952e /manifests
parentb3f1d7c7f5ec7a220d540927d555dd57e8d602bb (diff)
downloadpuppet-mail-0949ad3387a9224c1ec5a7d6b9d43237e555d05a.tar.gz
puppet-mail-0949ad3387a9224c1ec5a7d6b9d43237e555d05a.tar.bz2
Sympa configuration
Diffstat (limited to 'manifests')
-rw-r--r--manifests/sympa.pp26
-rw-r--r--manifests/system.pp8
2 files changed, 34 insertions, 0 deletions
diff --git a/manifests/sympa.pp b/manifests/sympa.pp
index ea6de43..2ce336b 100644
--- a/manifests/sympa.pp
+++ b/manifests/sympa.pp
@@ -5,4 +5,30 @@ class mail::sympa {
database::instance { "$sympa_database_name":
password => "$sympa_database_password",
}
+
+ group { 'sympa':
+ ensure => present,
+ }
+
+ user { 'sympa':
+ ensure => present,
+ gid => 'sympa',
+ require => Group['sympa'],
+ }
+
+ file { "/etc/sympa":
+ ensure => directory,
+ owner => postfix,
+ group => root,
+ mode => 0755,
+ }
+
+ file { "/etc/sympa/sympa.conf":
+ ensure => present,
+ owner => sympa,
+ group => sympa,
+ mode => 0640,
+ content => template('mail/sympa/sympa.conf.erb'),
+ require => [ File['/etc/sympa'], User['sympa'] ],
+ }
}
diff --git a/manifests/system.pp b/manifests/system.pp
index 41467d9..4b3b3b7 100644
--- a/manifests/system.pp
+++ b/manifests/system.pp
@@ -62,6 +62,14 @@ class mail::system {
'': { $sympa_database_name= "sympa" }
}
+ case $sympa_subdomain {
+ '': { $sympa_subdomain = "lists" }
+ }
+
+ case $sympa_lang {
+ '': { $sympa_lang = "en_US" }
+ }
+
include mail::sympa
include mail::web::sympa
include mail::packages::sympa