add fe_option

This commit is contained in:
Arne Teuke
2025-02-03 13:49:27 +01:00
parent aa258c1bd7
commit 59e21b6a67
2 changed files with 7 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ define cd_haproxy::server::proxy (
$frontend_mode = undef,
$fe_use_backend = '',
$fe_bind_mode = undef,
$fe_option = '',
$frontend_order = '010',
$acl_rule_front = '',
$acl_rule_back = '',
@@ -58,6 +59,7 @@ define cd_haproxy::server::proxy (
$be_server_name_array = split($be_server_name, ';')
$be_option_array = split($be_option, ';')
$fe_tcp_request_array = split($fe_tcp_request, ';')
$fe_option_array = split($fe_option, ';')
# create frontend section
concat::fragment { "frontend_${name}":

View File

@@ -11,6 +11,11 @@ bind <%= @fe_bind_mode %>
<% if @fe_maxconn != '' -%>
maxconn <%= @fe_maxconn %>
<% 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? -%>
<% @fe_tcp_request_array.each do |fe_tcp_request| -%>
tcp-request <%= fe_tcp_request %>