summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-12-01 23:48:52 +0000
committermh <mh@immerda.ch>2008-12-01 23:48:52 +0000
commit58831880c2992c4ca93d0ee1ee514b392b810f6c (patch)
tree87133928a3ffce50f23d51aba83fa13719ae9e4f
parente6f245b6258456806fbf00fd8037d29e38503654 (diff)
setting now the path as well
-rw-r--r--manifests/defines/vhost_varieties.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/defines/vhost_varieties.pp b/manifests/defines/vhost_varieties.pp
index 89cda95..fbf58d7 100644
--- a/manifests/defines/vhost_varieties.pp
+++ b/manifests/defines/vhost_varieties.pp
@@ -176,7 +176,16 @@ define apache::vhost::modperl(
){
# cgi_bin path
case $cgi_binpath {
- 'absent': { $real_cgi_binpath = "${path}/cgi-bin" }
+ 'absent': {
+ $real_path = $path ? {
+ 'absent' => $operatingsystem ? {
+ openbsd => "/var/www/htdocs/${name}",
+ default => "/var/www/vhosts/${name}"
+ },
+ default => "${path}"
+ }
+ $real_cgi_binpath = "${real_path}/cgi-bin"
+ }
default: { $real_cgi_binpath = $cgi_binpath }
}
file{$real_cgi_binpath: