Skip to content

Commit

Permalink
Merge pull request #1193 from mpdude/no-mod-authz-default-in-2.4
Browse files Browse the repository at this point in the history
Catch that mod_authz_default has been removed in Apache 2.4
  • Loading branch information
hunner committed Sep 3, 2015
2 parents abcdc9f + 059b92b commit 5fbc078
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 5fbc078

Please sign in to comment.