summaryrefslogtreecommitdiff
path: root/manifests/vhost/template.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-02-22 22:59:40 +0100
committermh <mh@immerda.ch>2011-02-22 22:59:40 +0100
commitf14fd057987b5489228a40444c3a101768c5b6bb (patch)
tree6822b37970897305924f5e11b1d7ee49a90ee9de /manifests/vhost/template.pp
parentea3ebee7153660f809d7f26224e7282f97029743 (diff)
first way to a unified partial based vhost template
Diffstat (limited to 'manifests/vhost/template.pp')
-rw-r--r--manifests/vhost/template.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp
index b0c08f9..303de0e 100644
--- a/manifests/vhost/template.pp
+++ b/manifests/vhost/template.pp
@@ -75,6 +75,7 @@ define apache::vhost::template(
$run_uid = 'absent',
$run_gid = 'absent',
$template_mode = 'static',
+ $template_partial = 'absent',
$ssl_mode = false,
$mod_security = true,
$mod_security_relevantonly = true,
@@ -174,7 +175,10 @@ define apache::vhost::template(
}
if $ensure != 'absent' {
Apache::Vhost::File[$name]{
- content => template("apache/vhosts/$template_mode/$operatingsystem.erb")
+ content => $template_partial ? {
+ 'absent' => template("apache/vhosts/$template_mode/$operatingsystem.erb"),
+ default => template("apache/vhosts/default.erb"),
+ }
}
}
}