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 1958
1958
Optional[Variant[Hash, Array]] $modsec_disable_msgs = undef ,
1959
1959
Optional[Variant[Hash, Array]] $modsec_disable_tags = undef ,
1960
1960
Optional[String] $modsec_body_limit = undef ,
1961
- Optional[ Array[Hash]] $jk_mounts = undef ,
1961
+ Array[Hash] $jk_mounts = [] ,
1962
1962
Boolean $auth_kerb = false ,
1963
1963
Enum[' on' , ' off' ] $krb_method_negotiate = ' on' ,
1964
1964
Enum[' on' , ' off' ] $krb_method_k5passwd = ' on' ,
2898
2898
2899
2899
# Template uses:
2900
2900
# - $jk_mounts
2901
- if $jk_mounts and ! empty($jk_mounts ) {
2901
+ if !empty($jk_mounts ) and $ensure == ' present' {
2902
+ include apache::mod::jk
2903
+
2902
2904
concat::fragment { "${name}-jk_mounts" :
2903
2905
target => " ${priority_real}${filename} .conf" ,
2904
2906
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? -%>
2
2
3
3
<%- @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') -%>
6
5
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') -%>
8
7
JkUnMount <%= jk['unmount'] %> <%= jk['worker'] %>
9
- <%- end -%>
10
8
<%- end -%>
11
9
<%- end -%>
12
10
<% end -%>
You can’t perform that action at this time.
0 commit comments