105 |
define vhost_base($content = '', |
define vhost_base($content = '', |
106 |
$location = '/dev/null', |
$location = '/dev/null', |
107 |
$use_ssl = false, |
$use_ssl = false, |
108 |
$vhost = false) { |
$vhost = false, |
109 |
|
$enable_public_html = false) { |
110 |
if ! $vhost { |
if ! $vhost { |
111 |
$real_vhost = $name |
$real_vhost = $name |
112 |
} else { |
} else { |
121 |
} |
} |
122 |
} |
} |
123 |
|
|
124 |
|
if $enable_public_html { |
125 |
|
include apache::mod_public_html |
126 |
|
} |
127 |
|
|
128 |
$filename = "$name.conf" |
$filename = "$name.conf" |
129 |
file { "$filename": |
file { "$filename": |
130 |
path => "/etc/httpd/conf/vhosts.d/$filename", |
path => "/etc/httpd/conf/vhosts.d/$filename", |