From 059b92b9403a555984734b988b7352adbbf7b602 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Tue, 18 Aug 2015 23:37:43 +0200 Subject: [PATCH] Catch that mod_authz_default has been removed in Apache 2.4 Having it in the server config will prevent the server from starting as the module file cannot be found. --- manifests/mod/authz_default.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/manifests/mod/authz_default.pp b/manifests/mod/authz_default.pp index 23edd9b5a..e457774ae 100644 --- a/manifests/mod/authz_default.pp +++ b/manifests/mod/authz_default.pp @@ -1,3 +1,9 @@ -class apache::mod::authz_default { - ::apache::mod { 'authz_default': } +class apache::mod::authz_default( + $apache_version = $::apache::apache_version +) { + if versioncmp($apache_version, '2.4') >= 0 { + warning('apache::mod::authz_default has been removed in Apache 2.4') + } else { + ::apache::mod { 'authz_default': } + } }