summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-05-26 15:08:17 +0200
committerMarcel Haerry <haerry@puzzle.ch>2009-05-26 15:08:26 +0200
commit3d77aa1b26b01a15f8335ed5741b3e99352f73da (patch)
tree44aa446e4b8f07dc37cd9291ac2726b93217e495 /manifests
parentb232a1df036ae44237586ae565e25e5b69f1da0c (diff)
only enable smarty when told to
and include smarty then
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vhost.pp2
-rw-r--r--manifests/vhost/php/standard.pp5
-rw-r--r--manifests/vhost/template.pp1
3 files changed, 8 insertions, 0 deletions
diff --git a/manifests/vhost.pp b/manifests/vhost.pp
index c5215a0..f1b010b 100644
--- a/manifests/vhost.pp
+++ b/manifests/vhost.pp
@@ -19,6 +19,7 @@ define apache::vhost(
$allow_override = 'None',
$php_upload_tmp_dir = 'absent',
$php_session_save_path = 'absent',
+ $php_use_smarty = false,
$cgi_binpath = 'absent',
$default_charset = 'absent',
$do_includes = false,
@@ -63,6 +64,7 @@ define apache::vhost(
options => $options,
additional_options => $additional_options,
default_charset => $default_charset,
+ php_use_smarty => $php_use_smarty,
run_mode => $run_mode,
run_uid => $run_uid,
run_gid => $run_gid,
diff --git a/manifests/vhost/php/standard.pp b/manifests/vhost/php/standard.pp
index fcca6cd..461c85a 100644
--- a/manifests/vhost/php/standard.pp
+++ b/manifests/vhost/php/standard.pp
@@ -24,6 +24,7 @@ define apache::vhost::php::standard(
$allow_override = 'None',
$php_upload_tmp_dir = 'absent',
$php_session_save_path = 'absent',
+ $php_use_smarty = false,
$do_includes = false,
$options = 'absent',
$additional_options = 'absent',
@@ -48,6 +49,10 @@ define apache::vhost::php::standard(
run_uid => $run_uid,
}
+ if $php_use_smarty {
+ include php::extensions::smarty
+ }
+
if $manage_webdir {
# create webdir
::apache::vhost::webdir{$name:
diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp
index 07429a2..ccc4538 100644
--- a/manifests/vhost/template.pp
+++ b/manifests/vhost/template.pp
@@ -29,6 +29,7 @@ define apache::vhost::template(
$options = 'absent',
$additional_options = 'absent',
$default_charset = 'absent',
+ $php_use_smarty = false,
$run_mode = 'normal',
$run_uid = 'absent',
$run_gid = 'absent',