Files
confdroid_haproxy/templates/haproxy_backend_rule.erb

17 lines
423 B
Plaintext
Raw Normal View History

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 -%>
2019-01-07 20:00:18 +01:00
<% @be_server_name.each do |be_server| -%>
2025-01-27 16:21:22 +01:00
server <%= be_server %>
2025-01-27 14:18:30 +01:00
2025-01-27 15:43:03 +01:00
<% end end -%>