summaryrefslogtreecommitdiff
path: root/manifests/vhost/modperl.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-08 22:27:37 +0200
committermh <mh@immerda.ch>2011-10-08 22:27:37 +0200
commit391dbaae8af22cf6f157aa4f741762a14cf0b483 (patch)
tree45f6b3b2d88b4acd133481e32cc7ef471b7ddc17 /manifests/vhost/modperl.pp
parent7991a88483f214d593a933ce97fc8a2adf44800e (diff)
add mod_fcgid stuff
Diffstat (limited to 'manifests/vhost/modperl.pp')
-rw-r--r--manifests/vhost/modperl.pp23
1 files changed, 18 insertions, 5 deletions
diff --git a/manifests/vhost/modperl.pp b/manifests/vhost/modperl.pp
index 9940286..795df6b 100644
--- a/manifests/vhost/modperl.pp
+++ b/manifests/vhost/modperl.pp
@@ -83,12 +83,25 @@ define apache::vhost::modperl(
mode => $documentroot_mode;
}
- case $run_mode {
- 'proxy-itk','static-itk': {
- $passing_extension = 'pl'
- include ::mod_perl::itk_plus
+ $passing_extension = 'pl'
+ if $ensure != 'absent' {
+ case $run_mode {
+ 'proxy-itk','static-itk': {
+ include ::mod_perl::itk_plus
+ }
+ 'fcgid': {
+ include ::mod_fcgid
+ # we don't need mod_perl if we run it as fcgid
+ include ::mod_perl::disable
+ mod_fcgid::starter {$name:
+ type => 'perl',
+ owner => $run_uid,
+ group => $run_gid,
+ notify => Service['apache'],
+ }
+ }
+ default: { include ::mod_perl }
}
- default: { include ::mod_perl }
}
# create webdir