Improved checking of included http and https server.
This commit is contained in:
parent
34177b723a
commit
a3b6071afb
1 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,7 @@ define apache::redhat::sslsite($ipaddr, $root, $ssl_cert, $ssl_key, $ssl_chain)
|
||||||
|
|
||||||
define apache::redhat::configfile($source, $content, $http, $https) {
|
define apache::redhat::configfile($source, $content, $http, $https) {
|
||||||
|
|
||||||
if defined(Service["httpd"]) {
|
if defined(Class["apache::server"]) {
|
||||||
file { "/etc/httpd/conf.http.d/${name}":
|
file { "/etc/httpd/conf.http.d/${name}":
|
||||||
ensure => $http ? {
|
ensure => $http ? {
|
||||||
true => present,
|
true => present,
|
||||||
|
@ -343,7 +343,7 @@ define apache::redhat::configfile($source, $content, $http, $https) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if defined(Service["httpsd"]) {
|
if defined(Class["apache::sslserver"]) {
|
||||||
file { "/etc/httpd/conf.https.d/${name}":
|
file { "/etc/httpd/conf.https.d/${name}":
|
||||||
ensure => $https ? {
|
ensure => $https ? {
|
||||||
true => present,
|
true => present,
|
||||||
|
|
Loading…
Add table
Reference in a new issue