anchor.diff:          <% end -%>
     <% end -%>
   
  -  <% if tcp_proxy["health_check_http"] then %>
  +  <% if tcp_proxy["health_check_http"] then -%>
   listen health_check_http_tcp-<%= tcp_proxy["name"] %>
       bind :<%= tcp_proxy["health_check_http"] %>
       mode http
  
positive.code:         backend_servers = servers
          backend_port = p("ha_proxy.backend_port")
      end
      %>
  
      <% backend_servers.each_with_index do |ip, index| -%>
          server node<%= index %> <%= ip %>:<%= backend_port %> <% if_p("ha_proxy.resolvers") do -%>
  
negative.code: end
  
  client_ca_certs = "/etc/ssl/certs/ca-certificates.crt"
  if_p("ha_proxy.client_ca_file") do
    client_ca_certs = "/var/vcap/jobs/haproxy/config/client-ca-certs.pem"
  end
  
  strict_sni = ""
  if_p("ha_proxy.strict_sni") do |sni|
    if sni == true
      strict_sni = "strict-sni"
    end
  end
  
  tls_options = "#{crt_config} #{strict_sni}"
  