anchor.diff:  <% end -%>
   
   listen ldap-389ds <%=node['bcpc']['management']['vip']%>:389
  -  timeout  client 1h
  -  timeout  server 1h
  -  mode tcp
  -  balance leastconn
  -  option  tcplog
  +  timeout client 1h
  +  timeout server 1h
  +  mode tcp
  +  balance leastconn
  +  option tcplog
     option tcpka
   <% @servers.each do |server| -%>
     <%= "server #{server['hostname']} #{server['bcpc']['management']['ip']}:389 check inter 5s rise 1 fall 1 observe layer4" %>
  
positive.code: 
  global
    daemon
    user  haproxy
    group  haproxy
    pidfile  /var/run/haproxy.pid
    log /dev/log local0 info
    maxconn  8000
  
  defaults
    log  global
    source <%=node['bcpc']['management']['vip']%>
    mode  http
    option http-server-close
    option abortonclose
    option tcplog
    option dontlognull
    option nolinger
    option  redispatch
    retries  3
    timeout  http-request 10s
    timeout  queue 1m
    timeout  connect 5s
    timeout  check 10s
    timeout  client 30m
    timeout  server 30m
  
  listen memcached <%=node['bcpc']['management']['vip']%>:11211
    mode tcp
  
negative.code: <% end -%>
  
  listen rabbitmq-amqp <%=node['bcpc']['management']['vip']%>:5672
    timeout client 24h
    timeout server 24h
    mode tcp
    balance leastconn
    option tcplog
    option tcpka
    option httpchk
  <% @servers.each do |server| -%>
  