Skip to content

Commit 88f611e

Browse files
authored
Merge pull request #2337 from ekohl/auto-enable-http2
Automatically enable mod_http2 if needed
2 parents 2af520e + 6fa784a commit 88f611e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

manifests/init.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,10 @@
827827
include "::apache::mod::${mpm_module}"
828828
}
829829

830+
if 'h2' in $protocols or 'h2c' in $protocols {
831+
include apache::mod::http2
832+
}
833+
830834
$default_vhost_ensure = $default_vhost ? {
831835
true => 'present',
832836
false => 'absent'

manifests/vhost.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2704,7 +2704,7 @@
27042704
}
27052705
}
27062706

2707-
if ($h2_copy_files != undef or $h2_direct != undef or $h2_early_hints != undef or $h2_max_session_streams != undef or $h2_modern_tls_only != undef or $h2_push != undef or $h2_push_diary_size != undef or $h2_push_priority != [] or $h2_push_resource != [] or $h2_serialize_headers != undef or $h2_stream_max_mem_size != undef or $h2_tls_cool_down_secs != undef or $h2_tls_warm_up_size != undef or $h2_upgrade != undef or $h2_window_size != undef) and $ensure == 'present' {
2707+
if ('h2' in $protocols or 'h2c' in $protocols or $h2_copy_files != undef or $h2_direct != undef or $h2_early_hints != undef or $h2_max_session_streams != undef or $h2_modern_tls_only != undef or $h2_push != undef or $h2_push_diary_size != undef or $h2_push_priority != [] or $h2_push_resource != [] or $h2_serialize_headers != undef or $h2_stream_max_mem_size != undef or $h2_tls_cool_down_secs != undef or $h2_tls_warm_up_size != undef or $h2_upgrade != undef or $h2_window_size != undef) and $ensure == 'present' {
27082708
include apache::mod::http2
27092709

27102710
concat::fragment { "${name}-http2":

0 commit comments

Comments
 (0)