Commit 04ab75af authored by taggart's avatar taggart
Browse files

move fastcgi/fcgid classes from site-sympa here, in their own files. have them...

move fastcgi/fcgid classes from site-sympa here, in their own files. have them include O/S specific classes to pick up packages
parent 9152eda4
class sympa::fastcgi {
case $operatingsystem {
debian: { include sympa::fastcgi::debian }
mageia: { include sympa::fastcgi::mageia }
default: { include sympa::fastcgi::default }
}
file {
"/var/lib/apache2/fastcgi":
ensure => present,
owner => root, group => sympa, mode => 0775,
require => Package["libapache2-mod-fastcgi"];
"/var/lib/apache2/fastcgi/dynamic":
ensure => present,
owner => root, group => sympa, mode => 0770,
require => File["/var/lib/apache2/fastcgi"];
}
apache2::envvars {
# FIXME: is this still needed?
"fastcgi_user":
content => "export APACHE_PID_FILE=/var/run/apache2.pid\nexport APACHE_RUN_USER=sympa\nexport APACHE_RUN_GROUP=sympa\nexport APACHE_RUN_DIR=/var/run/apache2$SUFFIX\nexport APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX\nexport APACHE_LOG_DIR=/var/log/apache2$SUFFIX\n\nexport LANG=C\nexport LANG\n"
}
apache2::module {
"fastcgi": ensure => present, require_package => "libapache2-mod-fastcgi";
# we need a way to set things in fcgid.conf, but the apache2 module
# we're currently (Aug 2011) using doesn't support that, so we deliver
# it as a file below
"fcgid": ensure => absent;
}
}
class sympa::fcgid {
case $operatingsystem {
debian: { include sympa::fcgid::debian }
mageia: { include sympa::fcgid::mageia }
default: { include sympa::fcgid::default }
}
apache2::module {
# we need a way to set things in fcgid.conf, but the apache2 module
# we're currently (Aug 2011) using doesn't support that, so we deliver
# it as a file below
"fcgid": ensure => present, require_package => "libapache2-mod-fcgid";
# disable fastcgi FIXME: too much?
"fastcgi": ensure => absent;
}
# FIXME: this is Riseup specific, figure out where to move it
file {
# NOTE: as mentioned above it would be better if the apache2 module
# could handle setting things in the module conf files for us, but for
# now we just deliver the file
"/etc/apache2/mods-available/fcgid.conf":
source => "$fileserver/apache2/fcgid.conf",
owner => root, group => root, mode => 0644;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment