Enable hacluster role when it is needed

Masakari-hostmonitor needs to have
corosync/pacemaker deployed.

This patch is just changing default enable_hacluter: "no"
to "yes" if masakari-hostmonitor is enabled.

Closes-Bug: #1934149
Change-Id: I979d1d6d08ca0cc0a748f175da77f68bcecc2d1a
This commit is contained in:
Michal Arbet 2022-06-07 00:04:57 +02:00
parent 4be5088371
commit e2f5c0dbb7
3 changed files with 12 additions and 2 deletions

View File

@ -622,7 +622,7 @@ enable_freezer: "no"
enable_gnocchi: "no"
enable_gnocchi_statsd: "no"
enable_grafana: "{{ enable_monasca | bool }}"
enable_hacluster: "no"
enable_hacluster: "{{ enable_masakari_hostmonitor | bool }}"
enable_heat: "{{ enable_openstack_core | bool }}"
enable_horizon: "{{ enable_openstack_core | bool }}"
enable_horizon_blazar: "{{ enable_blazar | bool }}"

View File

@ -0,0 +1,11 @@
---
fixes:
- |
Fixes an issue when ``masakari-hostmonitor`` is enabled
while corosync/pacemaker is not deployed.
`LP#1934149 <https://bugs.launchpad.net/kolla-ansible/+bug/1934149>`__
upgrade:
- |
Modifies the default value of ``enable_hacluster`` from ``no`` to
``yes`` if ``masakari-hostmonitor`` is enabled.
`LP#1934149 <https://bugs.launchpad.net/kolla-ansible/+bug/1934149>`__

View File

@ -105,7 +105,6 @@ ironic_dnsmasq_dhcp_ranges:
{% if scenario == "masakari" %}
enable_masakari: "yes"
enable_hacluster: "yes"
{% endif %}
{% if scenario == "cells" %}