diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-24 14:45:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-24 14:45:00 -0300 |
commit | 0949ad3387a9224c1ec5a7d6b9d43237e555d05a (patch) | |
tree | 8649f60afc700317482dedc5bd2f69082661952e /manifests | |
parent | b3f1d7c7f5ec7a220d540927d555dd57e8d602bb (diff) | |
download | puppet-mail-0949ad3387a9224c1ec5a7d6b9d43237e555d05a.tar.gz puppet-mail-0949ad3387a9224c1ec5a7d6b9d43237e555d05a.tar.bz2 |
Sympa configuration
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/sympa.pp | 26 | ||||
-rw-r--r-- | manifests/system.pp | 8 |
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 |