File tree 2 files changed +18
-17
lines changed
2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 131
131
}
132
132
include apache::mod::alias
133
133
include apache::mod::authn_file
134
+ include apache::mod::authz_core
134
135
include apache::mod::autoindex
135
136
include apache::mod::dav
136
137
include apache::mod::dav_fs
142
143
include apache::mod::auth_basic
143
144
144
145
if versioncmp($apache_version , ' 2.4' ) >= 0 {
145
- # authz_core is needed for 'Require' directive
146
- ::apache::mod { 'authz_core' :
147
- id => ' authz_core_module' ,
148
- }
149
-
150
146
# lots of stuff seems to break without access_compat
151
147
::apache::mod { 'access_compat' : }
152
148
} else {
159
155
} elsif $mods {
160
156
::apache::default_mods::load { $mods: }
161
157
162
- if versioncmp($apache_version , ' 2.4' ) >= 0 {
163
- # authz_core is needed for 'Require' directive
164
- ::apache::mod { 'authz_core' :
165
- id => ' authz_core_module' ,
166
- }
167
- }
158
+ include apache::mod::authz_core
168
159
} else {
169
- if versioncmp($apache_version , ' 2.4' ) >= 0 {
170
- # authz_core is needed for 'Require' directive
171
- ::apache::mod { 'authz_core' :
172
- id => ' authz_core_module' ,
173
- }
174
- }
160
+ include apache::mod::authz_core
175
161
}
176
162
}
Original file line number Diff line number Diff line change
1
+ # @summary
2
+ # Installs `mod_authz_core`.
3
+ #
4
+ # @param apache_version
5
+ # The version of apache being run.
6
+ #
7
+ # @see https://httpd.apache.org/docs/current/mod/mod_authz_core.html for additional documentation.
8
+ #
9
+ class apache::mod::authz_core (
10
+ Optional[String] $apache_version = $apache::apache_version
11
+ ) {
12
+ if versioncmp($apache_version , ' 2.4' ) >= 0 {
13
+ apache::mod { 'authz_core' : }
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments