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}"], } }