listen  proxy-tacker_api_cluster
    bind {{ internal_vip.ip }}:8888
    bind {{ public_vip.ip }}:8888
    mode tcp
    option tcp-check
    option tcplog
    balance source
{% for host,ip in haproxy_hosts.items() %}
    server {{ host }} {{ ip }}:8888 weight 1 check inter 2000 rise 2 fall 5
{% endfor %}