anchor.diff:    default_backend graphite-backend
   
   listen elasticsearch <%=node['bcpc']['management']['vip']%>:9200
  -  balance  source
  -  option  tcplog
  +  balance source
  +  option tcplog
     option httpchk GET /
     http-check expect status 200
   <% @servers.each do |server| -%>
  
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 ldap-389ds <%=node['bcpc']['management']['vip']%>:389
    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" %>
  