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