1 |
dmorgan |
234 |
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 |
dmorgan |
235 |
$ldappass = extlookup("sympa_ldap") |
11 |
dmorgan |
234 |
|
12 |
|
|
file { '/etc/sympa/sympa.conf': |
13 |
|
|
ensure => present, |
14 |
|
|
owner => root, |
15 |
|
|
group => root, |
16 |
|
|
mode => 644, |
17 |
|
|
content => template("sympa/sympa.conf") |
18 |
|
|
} |
19 |
|
|
|
20 |
dmorgan |
239 |
file { '/etc/sympa/auth.conf': |
21 |
|
|
ensure => present, |
22 |
|
|
owner => root, |
23 |
|
|
group => root, |
24 |
|
|
mode => 644, |
25 |
|
|
content => template("sympa/auth.conf") |
26 |
|
|
} |
27 |
|
|
|
28 |
boklm |
281 |
|
29 |
|
|
include apache::mod_fcgid |
30 |
|
|
apache::webapp_other{"sympa": |
31 |
|
|
webapp_file => "sympa/webapp_sympa.conf", |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
apache::vhost_other_app { "ml.$domain": |
35 |
|
|
vhost_file => "sympa/vhost_sympa.mageia.org.conf", |
36 |
|
|
} |
37 |
dmorgan |
234 |
} |
38 |
|
|
|