2 |
|
|
3 |
class base { |
class base { |
4 |
$php_date_timezone = "UTC" |
$php_date_timezone = "UTC" |
5 |
|
$httpd_logdir = "/var/log/httpd" |
6 |
|
|
7 |
package { "apache-mpm-prefork": |
package { "apache-mpm-prefork": |
8 |
alias => apache, |
alias => apache, |
146 |
$vhost = false, |
$vhost = false, |
147 |
$aliases = {}, |
$aliases = {}, |
148 |
$server_aliases = [], |
$server_aliases = [], |
149 |
|
$access_logfile = false, |
150 |
|
$error_logfile = false, |
151 |
$options = [], |
$options = [], |
152 |
$enable_public_html = false) { |
$enable_public_html = false) { |
153 |
include apache::base |
include apache::base |
157 |
$real_vhost = $vhost |
$real_vhost = $vhost |
158 |
} |
} |
159 |
|
|
160 |
|
if ! $access_logfile { |
161 |
|
$access_logfile = $httpd_logdir/access_log-$real_vhost |
162 |
|
} |
163 |
|
if ! $error_logfile { |
164 |
|
$error_logfile = $httpd_logdir/error_log-$real_vhost |
165 |
|
} |
166 |
|
|
167 |
if $use_ssl { |
if $use_ssl { |
168 |
include apache::mod_ssl |
include apache::mod_ssl |
169 |
if $wildcard_sslcert != 'true' { |
if $wildcard_sslcert != 'true' { |