Apply haproxy vars to haproxy group instead of haproxy_all
Any ansible command loads the group vars/host vars.
If haproxy group isn't properly loaded with hosts, the whole
group_vars/haproxy_all/keepalived.yml will fail to get an index
for any host belonging to the group.
Instead the index should search in the group in which the variable
applies to, to ensure it's always the same kind of group.
In a later commit, we should make sure the index is always done when
group size is bigger than 0.
Change-Id: Id489b3f337ea0db0be0008477c9e3afde3872004
Closes-Bug: #1752932
(cherry picked from commit ca8e8fc90abc08e9080a16d5b9fa3fc5a93c29bb)
Reviewed: https:/ /review. openstack. org/556822 /git.openstack. org/cgit/ openstack/ openstack- ansible/ commit/ ?id=85714acedb5 0ea65d7e7684c12 7984c8dc56afe4
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 85714acedb50ea6 5d7e7684c127984 c8dc56afe4
Author: Jean-Philippe Evrard <email address hidden>
Date: Mon Mar 26 16:56:11 2018 +0000
Apply haproxy vars to haproxy group instead of haproxy_all
Any ansible command loads the group vars/host vars. vars/haproxy_ all/keepalived. yml will fail to get an index
If haproxy group isn't properly loaded with hosts, the whole
group_
for any host belonging to the group.
Instead the index should search in the group in which the variable
applies to, to ensure it's always the same kind of group.
In a later commit, we should make sure the index is always done when
group size is bigger than 0.
Change-Id: Id489b3f337ea0d b0be0008477c9e3 afde3872004 9080a16d5b9fa3f c5a93c29bb)
Closes-Bug: #1752932
(cherry picked from commit ca8e8fc90abc08e