Skip to content

Commit

Permalink
fix the haproxy.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangguanzhang committed Apr 1, 2019
1 parent ee9ff5c commit b73e802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/HA/templates/keepalived.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 12,9 @@ vrrp_instance haproxy-vip {
interface {{ INTERFACE_NAME }}
virtual_router_id 47
advert_int 3

unicast_src_ip {{ inventory_hostname }}
unicast_peer {
{% for host in groups['master'] %}
{% for host in groups['master'] %}{% if host != inventory_hostname %}
{{ host }}
{% endfor %}
}
Expand Down

0 comments on commit b73e802

Please sign in to comment.