Skip to content

Commit 3305686

Browse files
committed
Install mod_http2 on EL if required
In EL8 httpd had a hard requirement on mod_http2 but in EL9 it turned into a weak dependency. While most installs default to installing weak dependencies, it can be disabled by users. OracleLinux even defaults to disabled. EL7 doesn't have http2 at all so the whole class can't be used with it.
1 parent fb5f80d commit 3305686

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

manifests/params.pp

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
'authnz_pam' => 'mod_authnz_pam',
203203
'fcgid' => 'mod_fcgid',
204204
'geoip' => 'mod_geoip',
205+
'http2' => 'mod_http2',
205206
'intercept_form_submit' => 'mod_intercept_form_submit',
206207
'ldap' => 'mod_ldap',
207208
'lookup_identity' => 'mod_lookup_identity',

spec/classes/mod/http2_spec.rb

+7
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,11 @@
8585
it { is_expected.to contain_file('http2.conf').with(content: expected_content) }
8686
end
8787
end
88+
89+
context 'on Red Hat 8' do
90+
include_examples 'RedHat 8' do
91+
it { is_expected.to contain_class('apache::mod::http2') }
92+
it { is_expected.to contain_package('mod_http2') }
93+
end
94+
end
8895
end

0 commit comments

Comments
 (0)