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 18, 2015
1 parent 8ef4ee5 commit b65b787
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/mod/authz_default.pp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
class apache::mod::authz_default {
::apache::mod { 'authz_default': }
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 b65b787

Please sign in to comment.