diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index 79195a0..d886eca 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -1,39 +1,39 @@ <% if @fqdn == @haproxy_fqdn -%> <% if @frontend_name != '' -%> -frontend <%= @frontend_name %> +frontend <%= @frontend_name %> <% end -%> <% if @frontend_mode != '' -%> -mode <%= @frontend_mode %> +mode <%= @frontend_mode %> <% end -%> <% if @fe_bind_mode != '' -%> -bind <%= @fe_bind_mode %> +bind <%= @fe_bind_mode %> <% end -%> <% if @fe_maxconn != '' -%> -maxconn <%= @fe_maxconn %> +maxconn <%= @fe_maxconn %> <% end -%> <% if @fe_option_array and !@fe_option_array.empty? -%> <% @fe_option_array.each do |fe_option| -%> -option <%= fe_option %> +option <%= fe_option %> <% end -%> <% end -%> <% if @fe_http_request_array and !@fe_http_request_array.empty? -%> <% @fe_http_request_array.each do |fe_http_request| -%> -http-request <%= fe_http_request %> +http-request <%= fe_http_request %> <% 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 %> +tcp-request <%= fe_tcp_request %> <% end -%> <% end -%> <% if @acl_rule_front_array and !@acl_rule_front_array.empty? -%> <% @acl_rule_front_array.each do |acl_rule_front| -%> -acl <%= acl_rule_front %> +acl <%= acl_rule_front %> <% end -%> <% end -%> <% if @fe_use_backend_array and !@fe_use_backend_array.empty? -%> <% @fe_use_backend_array.each do |fe_use_backend| -%> -use_backend <%= fe_use_backend %> +use_backend <%= fe_use_backend %> <% end -%> <% end -%> default_backend <%= @default_backend %>