2025-01-27 12:36:31 +01:00
|
|
|
<% if @fqdn == @haproxy_fqdn -%>
|
2025-01-29 23:45:11 +01:00
|
|
|
<% if @frontend_name != '' -%>
|
2025-01-28 18:08:49 +01:00
|
|
|
frontend <%= @frontend_name %>
|
2025-01-29 23:45:11 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% if @frontend_mode != '' -%>
|
2025-01-28 18:08:49 +01:00
|
|
|
mode <%= @frontend_mode %>
|
2025-01-29 23:45:11 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% if @fe_bind_mode != '' -%>
|
2025-01-28 18:08:49 +01:00
|
|
|
bind <%= @fe_bind_mode %>
|
2025-01-29 23:45:11 +01:00
|
|
|
<% end -%>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% if @fe_maxconn != '' -%>
|
|
|
|
|
maxconn <%= @fe_maxconn %>
|
|
|
|
|
<% end -%>
|
2025-01-29 23:02:45 +01:00
|
|
|
<% if @fe_tcp_request_array and !@fe_tcp_request_array.empty? -%>
|
|
|
|
|
<% @fe_tcp_request_array.each do |fe_tcp_request| -%>
|
2025-01-29 23:07:43 +01:00
|
|
|
tcp-request <%= fe_tcp_request %>
|
2025-01-29 23:02:45 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% end -%>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% if @acl_rule_front_array and !@acl_rule_front_array.empty? -%>
|
2025-01-28 18:23:48 +01:00
|
|
|
<% @acl_rule_front_array.each do |acl_rule_front| -%>
|
|
|
|
|
acl <%= acl_rule_front %>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% end -%>
|
|
|
|
|
<% if @fe_use_backend_array and !@fe_use_backend_array.empty? -%>
|
|
|
|
|
<% @fe_use_backend_array.each do |fe_use_backend| -%>
|
2025-01-28 18:32:07 +01:00
|
|
|
use_backend <%= fe_use_backend %>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% end -%>
|
2025-01-28 18:42:22 +01:00
|
|
|
default_backend <%= @default_backend %>
|
2025-01-29 23:29:44 +01:00
|
|
|
|
|
|
|
|
|
2019-01-07 20:00:18 +01:00
|
|
|
<% end -%>
|