File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 19581958 Optional[Variant[Hash, Array]] $modsec_disable_msgs = undef ,
19591959 Optional[Variant[Hash, Array]] $modsec_disable_tags = undef ,
19601960 Optional[String] $modsec_body_limit = undef ,
1961- Optional[ Array[Hash]] $jk_mounts = undef ,
1961+ Array[Hash] $jk_mounts = [] ,
19621962 Boolean $auth_kerb = false ,
19631963 Enum[' on' , ' off' ] $krb_method_negotiate = ' on' ,
19641964 Enum[' on' , ' off' ] $krb_method_k5passwd = ' on' ,
29002900
29012901 # Template uses:
29022902 # - $jk_mounts
2903- if $jk_mounts and ! empty($jk_mounts ) {
2903+ if !empty($jk_mounts ) and $ensure == ' present' {
2904+ include apache::mod::jk
2905+
29042906 concat::fragment { "${name}-jk_mounts" :
29052907 target => " ${priority_real}${filename} .conf" ,
29062908 order => 340,
Original file line number Diff line number Diff line change 1- <% if @jk_mounts and not @jk_mounts.empty? -%>
1+ <% unless @jk_mounts.empty? -%>
22
33 <%- @jk_mounts.each do |jk| -%>
4- <%- if jk.is_a?(Hash) -%>
5- <%- if jk.has_key?('mount') and jk.has_key?('worker') -%>
4+ <%- if jk.has_key?('mount') and jk.has_key?('worker') -%>
65 JkMount <%= jk['mount'] %> <%= jk['worker'] %>
7- <%- elsif jk.has_key?('unmount') and jk.has_key?('worker') -%>
6+ <%- elsif jk.has_key?('unmount') and jk.has_key?('worker') -%>
87 JkUnMount <%= jk['unmount'] %> <%= jk['worker'] %>
9- <%- end -%>
108 <%- end -%>
119 <%- end -%>
1210<% end -%>
You can’t perform that action at this time.
0 commit comments