From a3b6071afbc2c05af76cb56f6e2d75848c2792b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Wed, 13 Jun 2012 12:09:16 +0300 Subject: [PATCH] Improved checking of included http and https server. --- apache/manifests/redhat.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/manifests/redhat.pp b/apache/manifests/redhat.pp index 1ec10b9..561f1be 100644 --- a/apache/manifests/redhat.pp +++ b/apache/manifests/redhat.pp @@ -310,7 +310,7 @@ define apache::redhat::sslsite($ipaddr, $root, $ssl_cert, $ssl_key, $ssl_chain) define apache::redhat::configfile($source, $content, $http, $https) { - if defined(Service["httpd"]) { + if defined(Class["apache::server"]) { file { "/etc/httpd/conf.http.d/${name}": ensure => $http ? { 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}": ensure => $https ? { true => present,