1 |
class sympa { |
2 |
|
3 |
# perl-CGI-Fast is needed for fast cgi |
4 |
# perl-Socket6 is required by perl-IO-Socket-SSL |
5 |
# (optional requirement) |
6 |
$package_list = ['sympa', 'sympa-www', 'perl-CGI-Fast', |
7 |
'perl-Socket6'] |
8 |
|
9 |
package { $package_list: |
10 |
ensure => installed; |
11 |
} |
12 |
|
13 |
$password = extlookup("sympa_password",'x') |
14 |
$ldappass = extlookup("sympa_ldap",'x') |
15 |
|
16 |
@@postgresql::user { 'sympa': |
17 |
password => $password, |
18 |
} |
19 |
|
20 |
file { '/etc/sympa/sympa.conf': |
21 |
ensure => present, |
22 |
# should be cleaner to have it root owned, but puppet do not support acl |
23 |
# and in any case, config will be reset if it change |
24 |
owner => sympa, |
25 |
group => apache, |
26 |
mode => 640, |
27 |
content => template("sympa/sympa.conf") |
28 |
} |
29 |
|
30 |
file { '/etc/sympa/auth.conf': |
31 |
ensure => present, |
32 |
owner => root, |
33 |
group => root, |
34 |
mode => 644, |
35 |
content => template("sympa/auth.conf") |
36 |
} |
37 |
|
38 |
|
39 |
include apache::mod_fcgid |
40 |
apache::webapp_other{"sympa": |
41 |
webapp_file => "sympa/webapp_sympa.conf", |
42 |
} |
43 |
|
44 |
apache::vhost_other_app { "ml.$domain": |
45 |
vhost_file => "sympa/vhost_ml.conf", |
46 |
} |
47 |
|
48 |
@@postgresql::database { 'sympa': |
49 |
description => "Sympa database", |
50 |
user => "sympa", |
51 |
require => Postgresql::User["sympa"] |
52 |
} |
53 |
|
54 |
|
55 |
} |
56 |
|