File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5611,9 +5611,9 @@ Default value: `'Off'`
56115611
56125612##### <a name =" -apache--mod--proxy--allow_from " ></a >` allow_from `
56135613
5614- Data type: ` Optional[Stdlib::IP::Address] `
5614+ Data type: ` Optional[Variant[ Stdlib::IP::Address, Array[Stdlib::IP::Address]] ] `
56155615
5616- List of IPs allowed to access proxy.
5616+ IP address or list of IPs allowed to access proxy.
56175617
56185618Default value: ` undef `
56195619
Original file line number Diff line number Diff line change 55# Enables forward (standard) proxy requests.
66#
77# @param allow_from
8- # List of IPs allowed to access proxy.
8+ # IP address or list of IPs allowed to access proxy.
99#
1010# @param package_name
1111# Name of the proxy package to install.
2323#
2424class apache::mod::proxy (
2525 String $proxy_requests = ' Off' ,
26- Optional[Stdlib::IP::Address] $allow_from = undef ,
26+ Optional[Variant[ Stdlib::IP::Address, Array[Stdlib::IP::Address]] ] $allow_from = undef ,
2727 Optional[String] $package_name = undef ,
2828 String $proxy_via = ' On' ,
2929 Optional[Integer[0]] $proxy_timeout = undef ,
Original file line number Diff line number Diff line change 1010
1111 <% if @proxy_requests != 'Off' or ( @allow_from and ! @allow_from . empty? ) -%>
1212 < Proxy * >
13+ <%- if @allow_from . is_a? Array -%>
1314 Require ip <%= @allow_from . join ( " " ) %>
15+ <%- else -%>
16+ Require ip <%= @allow_from %>
17+ <%- end -%>
1418 </ Proxy >
1519 <% end -%>
1620
You can’t perform that action at this time.
0 commit comments