comparison modules/apache/manifests/mod/authz_default.pp @ 437:b8d6ada284dd

Update Apache module to latest version Also converted some params to ints to match
author IBBoard <dev@ibboard.co.uk>
date Sun, 14 Aug 2022 11:30:13 +0100
parents d9352a684e62
children
comparison
equal deleted inserted replaced
436:6293839019d0 437:b8d6ada284dd
4 # @param apache_version 4 # @param apache_version
5 # Version of Apache to install module on. 5 # Version of Apache to install module on.
6 # 6 #
7 # @see https://httpd.apache.org/docs/current/mod/mod_authz_default.html for additional documentation. 7 # @see https://httpd.apache.org/docs/current/mod/mod_authz_default.html for additional documentation.
8 # 8 #
9 class apache::mod::authz_default( 9 class apache::mod::authz_default (
10 $apache_version = $::apache::apache_version 10 Optional[String] $apache_version = $apache::apache_version
11 ) { 11 ) {
12 if versioncmp($apache_version, '2.4') >= 0 { 12 if versioncmp($apache_version, '2.4') >= 0 {
13 warning('apache::mod::authz_default has been removed in Apache 2.4') 13 warning('apache::mod::authz_default has been removed in Apache 2.4')
14 } else { 14 } else {
15 ::apache::mod { 'authz_default': } 15 ::apache::mod { 'authz_default': }