2025-01-27 12:36:31 +01:00
|
|
|
<% if @fqdn == @haproxy_fqdn -%>
|
2019-01-07 20:00:18 +01:00
|
|
|
backend <%= @backend_name %>
|
2025-01-27 16:07:43 +01:00
|
|
|
<% if @be_mode != '' -%>
|
2025-01-27 16:15:20 +01:00
|
|
|
mode <%= @be_mode %>
|
2025-01-27 16:07:43 +01:00
|
|
|
<% end -%>
|
2025-01-28 16:32:55 +01:00
|
|
|
<% if !@acl_rule_back_array.empty? -%>
|
|
|
|
|
<% @acl_rule_back_array.each do |acl_rule| -%>
|
|
|
|
|
acl <%= acl_rule %>
|
2025-01-27 13:42:33 +01:00
|
|
|
<% end -%>
|
2025-01-27 15:31:17 +01:00
|
|
|
<% if @be_balance != '' -%>
|
2025-01-27 16:21:22 +01:00
|
|
|
balance <%= @be_balance %>
|
2025-01-27 15:31:17 +01:00
|
|
|
<% end -%>
|
2025-01-28 16:57:26 +01:00
|
|
|
<% if !@be_server_name_array.empty? -%>
|
|
|
|
|
<% @be_server_name_array.each do |fe_use_backend| -%>
|
|
|
|
|
use_backend <%= fe_use_backend %>
|
2025-01-27 14:18:30 +01:00
|
|
|
|
2025-01-27 15:43:03 +01:00
|
|
|
<% end end -%>
|