anchor.diff:  <% end -%>
   
   listen rabbitmq-amqp <%=node['bcpc']['management']['vip']%>:5672
  -  timeout  client 24h
  -  timeout  server 24h
  -  mode tcp
  -  balance leastconn
  -  option  tcplog
  +  timeout client 24h
  +  timeout server 24h
  +  mode tcp
  +  balance leastconn
  +  option tcplog
     option tcpka
     option httpchk
   <% @servers.each do |server| -%>
  
positive.code:   default_backend graphite-backend
  
  listen elasticsearch <%=node['bcpc']['management']['vip']%>:9200
    balance  source
    option  tcplog
    option httpchk GET /
    http-check expect status 200
  <% @servers.each do |server| -%>
  
negative.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
  