summaryrefslogtreecommitdiff
path: root/manifests/sympa/web.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/sympa/web.pp')
-rw-r--r--manifests/sympa/web.pp32
1 files changed, 32 insertions, 0 deletions
diff --git a/manifests/sympa/web.pp b/manifests/sympa/web.pp
new file mode 100644
index 0000000..a174e62
--- /dev/null
+++ b/manifests/sympa/web.pp
@@ -0,0 +1,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}"],
+ }
+}