add fe_option
This commit is contained in:
@@ -28,6 +28,7 @@ define cd_haproxy::server::proxy (
|
|||||||
$frontend_mode = undef,
|
$frontend_mode = undef,
|
||||||
$fe_use_backend = '',
|
$fe_use_backend = '',
|
||||||
$fe_bind_mode = undef,
|
$fe_bind_mode = undef,
|
||||||
|
$fe_option = '',
|
||||||
$frontend_order = '010',
|
$frontend_order = '010',
|
||||||
$acl_rule_front = '',
|
$acl_rule_front = '',
|
||||||
$acl_rule_back = '',
|
$acl_rule_back = '',
|
||||||
@@ -58,6 +59,7 @@ define cd_haproxy::server::proxy (
|
|||||||
$be_server_name_array = split($be_server_name, ';')
|
$be_server_name_array = split($be_server_name, ';')
|
||||||
$be_option_array = split($be_option, ';')
|
$be_option_array = split($be_option, ';')
|
||||||
$fe_tcp_request_array = split($fe_tcp_request, ';')
|
$fe_tcp_request_array = split($fe_tcp_request, ';')
|
||||||
|
$fe_option_array = split($fe_option, ';')
|
||||||
|
|
||||||
# create frontend section
|
# create frontend section
|
||||||
concat::fragment { "frontend_${name}":
|
concat::fragment { "frontend_${name}":
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ bind <%= @fe_bind_mode %>
|
|||||||
<% if @fe_maxconn != '' -%>
|
<% if @fe_maxconn != '' -%>
|
||||||
maxconn <%= @fe_maxconn %>
|
maxconn <%= @fe_maxconn %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% if @fe_option_array and !@fe_option_array.empty? -%>
|
||||||
|
<% @fe_option_array.each do |fe_option| -%>
|
||||||
|
option <%= fe_optiont %>
|
||||||
|
<% end -%>
|
||||||
|
<% end -%>
|
||||||
<% if @fe_tcp_request_array and !@fe_tcp_request_array.empty? -%>
|
<% if @fe_tcp_request_array and !@fe_tcp_request_array.empty? -%>
|
||||||
<% @fe_tcp_request_array.each do |fe_tcp_request| -%>
|
<% @fe_tcp_request_array.each do |fe_tcp_request| -%>
|
||||||
tcp-request <%= fe_tcp_request %>
|
tcp-request <%= fe_tcp_request %>
|
||||||
|
|||||||
Reference in New Issue
Block a user