aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apache/manifests/init.pp')
-rw-r--r--modules/apache/manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp
index c3de7720..f070a828 100644
--- a/modules/apache/manifests/init.pp
+++ b/modules/apache/manifests/init.pp
@@ -105,7 +105,8 @@ class apache {
define vhost_base($content = '',
$location = '/dev/null',
$use_ssl = false,
- $vhost = false) {
+ $vhost = false,
+ $enable_public_html = false) {
if ! $vhost {
$real_vhost = $name
} else {
@@ -120,6 +121,10 @@ class apache {
}
}
+ if $enable_public_html {
+ include apache::mod_public_html
+ }
+
$filename = "$name.conf"
file { "$filename":
path => "/etc/httpd/conf/vhosts.d/$filename",