Restart horizon when package/venvs change
Currently, upgrading a horizon package/venv does not explicitly trigger a restart. A restart will only occur if an explicit or implicit config change occurs. This commit adds several restart notifiers such that a horizon package upgrade or venv replacement will force a restart. Note that this issue exists in all OpenStack roles at the moment, but the remaining roles are being addressed in their re-deploy venv reviews. The horizon re-deploy venv change was merged a while back which is why we need the separate review for this. Change-Id: I890e46bb7a2973c3582be7a37ee70730d1e3ffef
This commit is contained in:
parent
8c0c41b8b3
commit
023f73d3a9
@ -52,6 +52,7 @@
|
|||||||
when:
|
when:
|
||||||
- horizon_venv_enabled | bool
|
- horizon_venv_enabled | bool
|
||||||
- horizon_get_venv | failed
|
- horizon_get_venv | failed
|
||||||
|
notify: Restart apache2
|
||||||
tags:
|
tags:
|
||||||
- horizon-pip-packages
|
- horizon-pip-packages
|
||||||
|
|
||||||
@ -66,5 +67,6 @@
|
|||||||
delay: 2
|
delay: 2
|
||||||
with_items: horizon_pip_packages
|
with_items: horizon_pip_packages
|
||||||
when: not horizon_venv_enabled | bool
|
when: not horizon_venv_enabled | bool
|
||||||
|
notify: Restart apache2
|
||||||
tags:
|
tags:
|
||||||
- horizon-pip-packages
|
- horizon-pip-packages
|
||||||
|
@ -149,6 +149,7 @@
|
|||||||
when:
|
when:
|
||||||
- horizon_venv_enabled | bool
|
- horizon_venv_enabled | bool
|
||||||
- horizon_get_venv | changed
|
- horizon_get_venv | changed
|
||||||
|
notify: Restart apache2
|
||||||
tags:
|
tags:
|
||||||
- horizon-install
|
- horizon-install
|
||||||
- horizon-pip-packages
|
- horizon-pip-packages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user