Skip to content

Commit 3262f23

Browse files
committed
Only include modules if ensure is present
1 parent f496d76 commit 3262f23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manifests/vhost.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2740,7 +2740,7 @@
27402740
}
27412741
}
27422742

2743-
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 {
2743+
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' {
27442744
include apache::mod::http2
27452745

27462746
concat::fragment { "${name}-http2":
@@ -2750,13 +2750,13 @@
27502750
}
27512751
}
27522752

2753-
if $mdomain {
2753+
if $mdomain and $ensure == 'present' {
27542754
include apache::mod::md
27552755
}
27562756

27572757
# Template uses:
27582758
# - $userdir
2759-
if $userdir {
2759+
if $userdir and $ensure == 'present' {
27602760
include apache::mod::userdir
27612761

27622762
concat::fragment { "${name}-userdir":

0 commit comments

Comments
 (0)