openstack-ansible/playbooks/vars/configs
Gaudenz Steinlin 4beb48e2d3 Stable keepalived priorities
The calculation of the keepalived priority depended on the set of hosts
in the ansible_play_hosts variable. This meant that priorites changed
when the playbook was limited to only run on a subset of the hosts in
the "haproxy" group (eg. when reinstalling just one node).

This change replaces ansible_play_hosts by groups["haproxy"] so that the
priority calculation is stable as long as the set of haproxy nodes does
not change. It also simplifies the priority calculation without
changeing the result.

This change does not change the configuration in case the playbook is
run without --limit and ensures that the configuration does not change
if it is run with --limit.

Change-Id: I378351954fbed7b1fc31303c60e4575ddad9cf1d
(cherry picked from commit 78ed74957d)
2018-01-09 17:15:44 +01:00
..
haproxy_config.yml Change the galera health check for better cluster health 2017-12-14 10:35:43 +00:00
keepalived_haproxy.yml Stable keepalived priorities 2018-01-09 17:15:44 +01:00
keepalived_haproxy_notifications.sh Implementation of keepalived for haproxy 2015-10-07 23:08:41 -05:00