Skip to content

Commit

Permalink
Catch that mod_authz_default has been removed in Apache 2.4
Browse files Browse the repository at this point in the history
Having it in the server config will prevent the server from starting as the module file cannot be found.
  • Loading branch information
mpdude committed Aug 27, 2015
1 parent 8ef4ee5 commit 059b92b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/mod/authz_default.pp
Original file line number Diff line number Diff line change
@@ -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': }
}
}

0 comments on commit 059b92b

Please sign in to comment.