commit e2a3834942e4dfc64d5ec79b9a2bc76b7cfde453
Author: Christian Berendt <email address hidden>
Date: Tue Feb 18 13:02:28 2020 +0100
Avoid multiple haproxy restarts after reconfiguration
The haproxy role and the site.yml file calls the
haproxy-config role to provide configuration for individual
services.
If the configuration within a service changes, the haproxy
container is restarted.
If the configuration in n services changes, there will be n
restarts. This is not necessary, a restart at the end is
sufficient.
By removing the handler from the haproxy-config role and
using the listen parameter in the handler of the haproxy role,
the handler is executed only once.
Change-Id: I535fe67579fb748093bb4b30a6bd31b81e021a1b
Closes-Bug: #1864810
(cherry picked from commit 1efe0fe333ff869ea0a04ff87a11ff27a251560b)
Reviewed: https:/ /review. opendev. org/723260 /git.openstack. org/cgit/ openstack/ kolla-ansible/ commit/ ?id=e2a3834942e 4dfc64d5ec79b9a 2bc76b7cfde453
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit e2a3834942e4dfc 64d5ec79b9a2bc7 6b7cfde453
Author: Christian Berendt <email address hidden>
Date: Tue Feb 18 13:02:28 2020 +0100
Avoid multiple haproxy restarts after reconfiguration
The haproxy role and the site.yml file calls the
haproxy-config role to provide configuration for individual
services.
If the configuration within a service changes, the haproxy
container is restarted.
If the configuration in n services changes, there will be n
restarts. This is not necessary, a restart at the end is
sufficient.
By removing the handler from the haproxy-config role and
using the listen parameter in the handler of the haproxy role,
the handler is executed only once.
Change-Id: I535fe67579fb74 8093bb4b30a6bd3 1b81e021a1b ea0a04ff87a11ff 27a251560b)
Closes-Bug: #1864810
(cherry picked from commit 1efe0fe333ff869