diff options
author | Andreas <andreas@immerda.ch> | 2009-11-18 18:43:30 +0100 |
---|---|---|
committer | Andreas <andreas@immerda.ch> | 2009-11-18 18:43:30 +0100 |
commit | 8a30f43b186e967421fd550aa117a56dda869938 (patch) | |
tree | 1e4f9178b3e4c2045c32ce45222300a83cc9d253 /manifests/vhost/php/webapp.pp | |
parent | 211812c875cf0d6bfbf96d30b23ecaed7aee1fb3 (diff) |
renames and proc move from webhosting for php_safe_mode_exec_bins
Diffstat (limited to 'manifests/vhost/php/webapp.pp')
-rw-r--r-- | manifests/vhost/php/webapp.pp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/manifests/vhost/php/webapp.pp b/manifests/vhost/php/webapp.pp index 4abb63c..4edc069 100644 --- a/manifests/vhost/php/webapp.pp +++ b/manifests/vhost/php/webapp.pp @@ -22,7 +22,6 @@ define apache::vhost::php::webapp( $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, @@ -40,7 +39,8 @@ define apache::vhost::php::webapp( $config_file = 'absent', $config_webwriteable = false, $manage_directories = true, - $managed_directories = 'absent' + $managed_directories = 'absent', + $php_safe_mode_exec_bins = 'absent' ){ if ($ensure != 'absent') { if $manage_directories and ($managed_directories != 'absent') { @@ -71,6 +71,16 @@ define apache::vhost::php::webapp( } } + if $php_safe_mode_exec_bins and ($php_safe_mode_exec_bins != 'absent') { + $php_safe_mode_exec_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::standard{$name: ensure => $ensure, @@ -90,7 +100,6 @@ define apache::vhost::php::webapp( 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, @@ -104,6 +113,8 @@ define apache::vhost::php::webapp( vhost_destination => $vhost_destination, htpasswd_file => $htpasswd_file, htpasswd_path => $htpasswd_path, + php_safe_mode_exec_bins => $php_safe_mode_exec_bins, + php_safe_mode_exec_bin_dir => $php_safe_mode_exec_bin_dir, } } |