From 58831880c2992c4ca93d0ee1ee514b392b810f6c Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 1 Dec 2008 23:48:52 +0000 Subject: setting now the path as well --- manifests/defines/vhost_varieties.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'manifests') 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: -- cgit v1.2.3