1 |
dmorgan |
234 |
class sympa { |
2 |
misc |
533 |
|
3 |
|
|
# perl-CGI-Fast is needed for fast cgi |
4 |
misc |
537 |
# 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 |
dmorgan |
234 |
|
9 |
|
|
package { $package_list: |
10 |
|
|
ensure => installed; |
11 |
|
|
} |
12 |
|
|
|
13 |
misc |
549 |
# sympa script start 5 differents script, I am not |
14 |
|
|
# sure that puppet will correctly handle this |
15 |
|
|
service { "sympa": |
16 |
|
|
ensure => running, |
17 |
|
|
hasstatus => true, |
18 |
|
|
subscribe => [ Package["sympa"]] |
19 |
|
|
} |
20 |
|
|
|
21 |
misc |
378 |
$password = extlookup("sympa_password",'x') |
22 |
misc |
540 |
$ldap_passwd = extlookup("sympa_ldap",'x') |
23 |
dmorgan |
234 |
|
24 |
misc |
529 |
@@postgresql::user { 'sympa': |
25 |
|
|
password => $password, |
26 |
|
|
} |
27 |
|
|
|
28 |
dmorgan |
234 |
file { '/etc/sympa/sympa.conf': |
29 |
|
|
ensure => present, |
30 |
misc |
340 |
# should be cleaner to have it root owned, but puppet do not support acl |
31 |
|
|
# and in any case, config will be reset if it change |
32 |
|
|
owner => sympa, |
33 |
|
|
group => apache, |
34 |
|
|
mode => 640, |
35 |
dmorgan |
234 |
content => template("sympa/sympa.conf") |
36 |
|
|
} |
37 |
|
|
|
38 |
dmorgan |
239 |
file { '/etc/sympa/auth.conf': |
39 |
|
|
ensure => present, |
40 |
|
|
owner => root, |
41 |
|
|
group => root, |
42 |
|
|
mode => 644, |
43 |
|
|
content => template("sympa/auth.conf") |
44 |
|
|
} |
45 |
|
|
|
46 |
boklm |
281 |
|
47 |
|
|
include apache::mod_fcgid |
48 |
|
|
apache::webapp_other{"sympa": |
49 |
|
|
webapp_file => "sympa/webapp_sympa.conf", |
50 |
|
|
} |
51 |
|
|
|
52 |
misc |
529 |
apache::vhost_other_app { "ml.$domain": |
53 |
boklm |
284 |
vhost_file => "sympa/vhost_ml.conf", |
54 |
misc |
529 |
} |
55 |
|
|
|
56 |
|
|
@@postgresql::database { 'sympa': |
57 |
|
|
description => "Sympa database", |
58 |
|
|
user => "sympa", |
59 |
|
|
require => Postgresql::User["sympa"] |
60 |
|
|
} |
61 |
|
|
|
62 |
misc |
550 |
subversion::snapshot { "/etc/sympa/web_tt2": |
63 |
|
|
source => "svn://svn.mageia.org/svn/web/templates/sympa/trunk" |
64 |
|
|
} |
65 |
dmorgan |
234 |
} |
66 |
|
|
|