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 |
owner => root, |
15 |
group => root, |
16 |
mode => 644, |
17 |
content => template("sympa/sympa.conf") |
18 |
} |
19 |
|
20 |
file { '/etc/sympa/ldap_alias_manager.conf': |
21 |
ensure => present, |
22 |
owner => root, |
23 |
group => root, |
24 |
mode => 644, |
25 |
content => template("sympa/ldap_alias_manager.conf") |
26 |
} |
27 |
|
28 |
file { '/etc/sympa/auth.conf': |
29 |
ensure => present, |
30 |
owner => root, |
31 |
group => root, |
32 |
mode => 644, |
33 |
content => template("sympa/auth.conf") |
34 |
} |
35 |
|
36 |
file { '/etc/sympa/ldap_alias_entry.tt2': |
37 |
ensure => present, |
38 |
owner => root, |
39 |
group => root, |
40 |
mode => 644, |
41 |
content => template("sympa/ldap_alias_entry.tt2") |
42 |
} |
43 |
} |
44 |
|