diff --git a/templates/haproxy_acl_rule.erb b/templates/haproxy_acl_rule.erb index cde8af7..3584f0a 100644 --- a/templates/haproxy_acl_rule.erb +++ b/templates/haproxy_acl_rule.erb @@ -1,4 +1,4 @@ -<% if @fqdn == @hy_host_fqdn -%> +<% if @fqdn == @haproxy_fqdn -%> <% if @acl_rule != '' -%> <% @acl_rule.each do |acl_rule| -%> acl <%= acl_rule %> diff --git a/templates/haproxy_backend_rule.erb b/templates/haproxy_backend_rule.erb index c18961b..090772e 100644 --- a/templates/haproxy_backend_rule.erb +++ b/templates/haproxy_backend_rule.erb @@ -1,4 +1,4 @@ -<% if @fqdn == @hy_host_fqdn -%> +<% if @fqdn == @haproxy_fqdn -%> backend <%= @backend_name %> <% @be_server_name.each do |be_server| -%> server <%= be_server %> diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index 7f9ca84..3b569d7 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -1,4 +1,4 @@ -<% if @fqdn == @hy_host_fqdn -%> +<% if @fqdn == @haproxy_fqdn -%> frontend <%= @frontend_name %> mode <%= @frontend_mode %> bind <%= @fe_bind_mode %>