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",'x') |
10 |
$ldappass = extlookup("sympa_ldap",'x') |
11 |
|
12 |
@@postgresql::user { 'sympa': |
13 |
password => $password, |
14 |
} |
15 |
|
16 |
file { '/etc/sympa/sympa.conf': |
17 |
ensure => present, |
18 |
# should be cleaner to have it root owned, but puppet do not support acl |
19 |
# and in any case, config will be reset if it change |
20 |
owner => sympa, |
21 |
group => apache, |
22 |
mode => 640, |
23 |
content => template("sympa/sympa.conf") |
24 |
} |
25 |
|
26 |
file { '/etc/sympa/auth.conf': |
27 |
ensure => present, |
28 |
owner => root, |
29 |
group => root, |
30 |
mode => 644, |
31 |
content => template("sympa/auth.conf") |
32 |
} |
33 |
|
34 |
|
35 |
include apache::mod_fcgid |
36 |
apache::webapp_other{"sympa": |
37 |
webapp_file => "sympa/webapp_sympa.conf", |
38 |
} |
39 |
|
40 |
apache::vhost_other_app { "ml.$domain": |
41 |
vhost_file => "sympa/vhost_ml.conf", |
42 |
} |
43 |
|
44 |
@@postgresql::database { 'sympa': |
45 |
description => "Sympa database", |
46 |
user => "sympa", |
47 |
require => Postgresql::User["sympa"] |
48 |
} |
49 |
|
50 |
|
51 |
} |
52 |
|