anchor.diff:    group  haproxy
     pidfile  /var/run/haproxy.pid
     log /dev/log local0 info
  +  maxconn  8000
   
   defaults
     log  global
  -  maxconn  8000
     source <%=node['bcpc']['management']['vip']%>
     mode  http
     option http-server-close
  
positive.code: 
  frontend radosgw-http
    bind <%="#{node['bcpc']['floating']['vip']}:#{node['bcpc']['ports']['haproxy']['radosgw']}"%>
    balance leastconn
    option tcplog
    default_backend radosgw-http-backend
  
  frontend radosgw-https
    bind <%="#{node['bcpc']['floating']['vip']}:#{node['bcpc']['ports']['haproxy']['radosgw_https']}"%> ssl crt /etc/haproxy/haproxy.pem
    balance leastconn
    option tcplog
    default_backend radosgw-http-backend
  
  backend radosgw-http-backend
    option httpchk GET /
    http-check expect status 200
    source <%=node['bcpc']['floating']['vip']%>
  
negative.code: <% end -%>
  
  backend rabbitmq-web-backend
    balance source
    option httpchk GET /
    http-check expect status 200
    reqrep ^([^\ :]*)\ /rabbitmq/(.*) \1\ /\2
  