add reqadd option
This commit is contained in:
@@ -41,7 +41,7 @@ define cd_haproxy::server::proxy (
|
||||
$default_backend = '',
|
||||
$be_option = '',
|
||||
$fe_tcp_request = '',
|
||||
$fe_req_add = '',
|
||||
$fe_http_request = '',
|
||||
|
||||
) {
|
||||
|
||||
@@ -61,7 +61,7 @@ define cd_haproxy::server::proxy (
|
||||
$be_option_array = split($be_option, ';')
|
||||
$fe_tcp_request_array = split($fe_tcp_request, ';')
|
||||
$fe_option_array = split($fe_option, ';')
|
||||
$fe_req_add_array = split($fe_req_add, ';')
|
||||
$fe_http_request_array = split($fe_http_request, ';')
|
||||
|
||||
# create frontend section
|
||||
concat::fragment { "frontend_${name}":
|
||||
|
||||
@@ -16,9 +16,9 @@ maxconn <%= @fe_maxconn %>
|
||||
option <%= fe_option %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<% if @fe_req_add_array and !@fe_req_add_array.empty? -%>
|
||||
<% @fe_req_add_array.each do |fe_req_add| -%>
|
||||
reqadd <%= fe_req_add %>
|
||||
<% if @fe_http_request_array and !@fe_http_request_array.empty? -%>
|
||||
<% @fe_http_request_array.each do |fe_http_request| -%>
|
||||
http-request <%= fe_http_request %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user