3 #chroot /var/run/haproxy
8 pidfile /var/run/haproxy/haproxy.pid
11 stats socket /var/run/haproxy.sock
20 timeout http-request 10s
28 listen proxy-glance_registry_cluster
29 bind {{ HA_VIP }}:9191
33 {% for host in groups['controller'] %}
34 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:9191 weight 1 check inter 2000 rise 2 fall 5
37 listen proxy-glance_api_cluster
38 bind {{ HA_VIP }}:9292
43 {% for host in groups['controller'] %}
44 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:9292 weight 1 check inter 2000 rise 2 fall 5
47 listen proxy-nova-novncproxy
48 bind {{ HA_VIP }}:6080
52 {% for host in groups['controller'] %}
53 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:6080 weight 1 check inter 2000 rise 2 fall 5
57 bind {{ HA_VIP }}:9696
61 {% for host in groups['controller'] %}
62 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:9696 weight 1 check inter 2000 rise 2 fall 5
66 bind {{ HA_VIP }}:8776
71 {% for host in groups['controller'] %}
72 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8776 weight 1 check inter 2000 rise 2 fall 5
75 listen proxy-keystone_admin_cluster
76 bind {{ HA_VIP }}:35357
81 {% for host in groups['controller'] %}
82 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:35357 weight 1 check inter 2000 rise 2 fall 5
85 listen proxy-keystone_public_internal_cluster
86 bind {{ HA_VIP }}:5000
91 {% for host in groups['controller'] %}
92 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:5000 weight 1 check inter 2000 rise 2 fall 5
95 listen proxy-nova_compute_api_cluster
96 bind {{ HA_VIP }}:8774
101 {% for host in groups['controller'] %}
102 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8774 weight 1 check inter 2000 rise 2 fall 5
105 listen proxy-nova_metadata_api_cluster
106 bind {{ HA_VIP }}:8775
110 {% for host in groups['controller'] %}
111 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8775 weight 1 check inter 2000 rise 2 fall 5
114 listen proxy-cinder_api_cluster
115 bind {{ HA_VIP }}:8776
120 {% for host in groups['controller'] %}
121 server {{ host }} {{ hostvars[host]['ansible_' + INTERNAL_INTERFACE].ipv4.address }}:8776 weight 1 check inter 2000 rise 2 fall 5
130 stats realm Global\ statistics
131 stats auth admin:admin