1 |
class sympa { |
2 |
|
3 |
$package_list = ['sympa', 'sympa-www'] |
4 |
|
5 |
package { $package_list: |
6 |
ensure => installed; |
7 |
} |
8 |
|
9 |
$password = extlookup("sympa_password") |
10 |
$ldappass = extlookup("sympa_ldap") |
11 |
|
12 |
file { '/etc/sympa/sympa.conf': |
13 |
ensure => present, |
14 |
# should be cleaner to have it root owned, but puppet do not support acl |
15 |
# and in any case, config will be reset if it change |
16 |
owner => sympa, |
17 |
group => apache, |
18 |
mode => 640, |
19 |
content => template("sympa/sympa.conf") |
20 |
} |
21 |
|
22 |
file { '/etc/sympa/auth.conf': |
23 |
ensure => present, |
24 |
owner => root, |
25 |
group => root, |
26 |
mode => 644, |
27 |
content => template("sympa/auth.conf") |
28 |
} |
29 |
|
30 |
|
31 |
include apache::mod_fcgid |
32 |
apache::webapp_other{"sympa": |
33 |
webapp_file => "sympa/webapp_sympa.conf", |
34 |
} |
35 |
|
36 |
apache::vhost_other_app { "ml.$domain": |
37 |
vhost_file => "sympa/vhost_ml.conf", |
38 |
} |
39 |
} |
40 |
|