summaryrefslogtreecommitdiff
path: root/manifests/vhost/php/typo3.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/vhost/php/typo3.pp')
-rw-r--r--manifests/vhost/php/typo3.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/vhost/php/typo3.pp b/manifests/vhost/php/typo3.pp
index 08ab2db..dcc10bc 100644
--- a/manifests/vhost/php/typo3.pp
+++ b/manifests/vhost/php/typo3.pp
@@ -19,6 +19,7 @@ define apache::vhost::php::typo3(
$run_uid = 'absent',
$run_gid = 'absent',
$allow_override = 'None',
+ $php_bin_dir = 'absent',
$php_upload_tmp_dir = 'absent',
$php_session_save_path = 'absent',
$do_includes = false,
@@ -44,6 +45,14 @@ define apache::vhost::php::typo3(
default => "${path}/www"
}
+ $php_bin_dir = $path ? {
+ 'absent' => $operatingsystem ? {
+ openbsd => "/var/www/htdocs/${name}/bin",
+ default => "/var/www/vhosts/${name}/bin"
+ },
+ default => "${path}/bin"
+ }
+
# create vhost configuration file
::apache::vhost::php::webapp{$name:
ensure => $ensure,
@@ -61,6 +70,7 @@ define apache::vhost::php::typo3(
run_uid => $run_uid,
run_gid => $run_gid,
allow_override => $allow_override,
+ php_bin_dir => $php_bin_dir,
php_upload_tmp_dir => $php_upload_tmp_dir,
php_session_save_path => $php_session_save_path,
do_includes => $do_includes,