diff options
Diffstat (limited to 'manifests/vhost/template.pp')
-rw-r--r-- | manifests/vhost/template.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp index 8ce6484..75cb9cf 100644 --- a/manifests/vhost/template.pp +++ b/manifests/vhost/template.pp @@ -24,6 +24,7 @@ define apache::vhost::template( $domainalias = 'absent', $server_admin = 'absent', $allow_override = 'None', + $php_bin_dir = 'absent', $php_upload_tmp_dir = 'absent', $php_session_save_path = 'absent', $cgi_binpath = 'absent', @@ -94,6 +95,13 @@ define apache::vhost::template( } # set default dirs for templates + # php bin_dir + case $php_bin_dir { + 'absent': { + $real_php_bin_dir = "/var/www/vhosts/$name/bin" + } + default: { $real_php_bin_dir = $php_bin_dir } + } # php upload_tmp_dir case $php_upload_tmp_dir { 'absent': { |