summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-02-02 23:42:43 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-02-02 23:42:43 -0500
commit680e53b37eefa7e434f6281466077ce6b7bc7f2c (patch)
tree116598faaf1b678f64ef98b7d79f0ce361d9b18a /manifests
parentdaf3cb2965e5c91c0ac817d7edf73581e2c21953 (diff)
add php_additional_open_basedirs and php_additional_options in php vhost (fully implemented in standard template only, for now)
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vhost.pp6
-rw-r--r--manifests/vhost/php/standard.pp4
-rw-r--r--manifests/vhost/template.pp3
3 files changed, 11 insertions, 2 deletions
diff --git a/manifests/vhost.pp b/manifests/vhost.pp
index f1a20f0..1f2db90 100644
--- a/manifests/vhost.pp
+++ b/manifests/vhost.pp
@@ -30,6 +30,8 @@ define apache::vhost(
$php_use_pear = false,
$php_safe_mode = true,
$php_default_charset = 'absent',
+ $php_additional_open_basedirs = 'absent',
+ $php_additional_options = 'absent',
$cgi_binpath = 'absent',
$default_charset = 'absent',
$do_includes = false,
@@ -83,6 +85,8 @@ define apache::vhost(
php_use_pear => $php_use_pear,
php_safe_mode => $php_safe_mode,
php_default_charset => $php_default_charset,
+ php_additional_open_basedirs => $php_additional_open_basedirs,
+ php_additional_options => $php_additional_options,
run_mode => $run_mode,
run_uid => $run_uid,
run_gid => $run_gid,
@@ -98,6 +102,4 @@ define apache::vhost(
}
default: { fail("no such vhost_mode: $vhost_mode defined for $name.") }
}
-
}
-
diff --git a/manifests/vhost/php/standard.pp b/manifests/vhost/php/standard.pp
index a6e2ff0..6a83a42 100644
--- a/manifests/vhost/php/standard.pp
+++ b/manifests/vhost/php/standard.pp
@@ -35,6 +35,8 @@ define apache::vhost::php::standard(
$php_safe_mode = true,
$php_safe_mode_exec_bins = 'absent',
$php_default_charset = 'absent',
+ $php_additional_open_basedirs = 'absent',
+ $php_additional_options = 'absent',
$do_includes = false,
$options = 'absent',
$additional_options = 'absent',
@@ -146,6 +148,8 @@ define apache::vhost::php::standard(
php_use_pear => $php_use_pear,
php_safe_mode => $php_safe_mode,
php_default_charset => $real_php_default_charset,
+ php_additional_open_basedirs => $php_additional_open_basedirs,
+ php_additional_options => $php_additional_options,
ssl_mode => $ssl_mode,
htpasswd_file => $htpasswd_file,
htpasswd_path => $htpasswd_path,
diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp
index b0b2e8d..a9e0dbe 100644
--- a/manifests/vhost/template.pp
+++ b/manifests/vhost/template.pp
@@ -42,6 +42,8 @@ define apache::vhost::template(
$php_use_pear = false,
$php_safe_mode = true,
$php_default_charset = 'absent',
+ $php_additional_open_basedirs = 'absent',
+ $php_additional_options = 'absent',
$run_mode = 'normal',
$run_uid = 'absent',
$run_gid = 'absent',
@@ -102,6 +104,7 @@ define apache::vhost::template(
}
}
+
# set default dirs for templates
# php php_safe_mode_exec_bin directory
case $php_safe_mode_exec_bin_dir {