1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
class mail::sympa::web inherits websites::setup {
apache::site { "${sympa::subdomain}":
docroot => "${apache::www_folder}/${sympa::subdomain}",
source => true,
owner => sympa,
group => sympa,
mpm => false,
}
package { [ 'apache2-suexec', 'libapache2-mod-fcgid' ]:
ensure => present,
}
apache::module { "fcgid":
ensure => present,
require => Package["libapache2-mod-fcgid"],
}
apache::module { "suexec":
ensure => present,
require => Package["apache2-suexec"],
}
file { "${apache::www_folder}/${sympa::subdomain}/wwsympa.fcgi":
ensure => present,
owner => sympa,
group => sympa,
mode => '0550',
content => "#!/bin/sh\n/usr/lib/cgi-bin/sympa/wwsympa.fcgi\n",
require => File["${apache::www_folder}/${sympa::subdomain}"],
}
}
|