From e8ee24cbbbc8f396ecd917ed5385caabc61a686f Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 4 Nov 2025 15:06:14 +0100 Subject: [PATCH] Allow to skip pacemaker/corosync setup Masakari monitors allow to have other clustering mechanisms (like consul) then pacemaker/corosync. So let users allow to skip deployment if they wanna use different mechanism. Change-Id: I3ab1ec3dbb69978b7d090914b7d51cc1d4f11dc9 Signed-off-by: Dmitriy Rabotyagov --- playbooks/masakari.yml | 14 ++++++++++++-- .../notes/pacemaker_corosync-1f47c9f82516a729.yaml | 7 +++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/pacemaker_corosync-1f47c9f82516a729.yaml diff --git a/playbooks/masakari.yml b/playbooks/masakari.yml index 3ed64fda..9d0f6377 100644 --- a/playbooks/masakari.yml +++ b/playbooks/masakari.yml @@ -28,6 +28,7 @@ serial: "{{ masakari_monitor_serial | default('100%') }}" user: root vars: + pacemaker_corosync_install: true pacemaker_corosync_group: masakari_monitor pacemaker_corosync_ring_interface: "{{ masakari_monitor_corosync_multicast_interface }}" haveged_enabled: false @@ -44,9 +45,18 @@ - always tags: - always - roles: - - role: "pacemaker_corosync" + tasks: + - name: Create corosync cluster + ansible.builtin.include_role: + name: "pacemaker_corosync" + apply: + tags: + - pacemaker-corosync tags: pacemaker-corosync + when: + - pacemaker_corosync_install + - pacemaker_corosync_group in groups + - groups[pacemaker_corosync_group] | length > 0 - name: Configure haproxy services ansible.builtin.import_playbook: openstack.osa.haproxy_service_config diff --git a/releasenotes/notes/pacemaker_corosync-1f47c9f82516a729.yaml b/releasenotes/notes/pacemaker_corosync-1f47c9f82516a729.yaml new file mode 100644 index 00000000..6d4b7919 --- /dev/null +++ b/releasenotes/notes/pacemaker_corosync-1f47c9f82516a729.yaml @@ -0,0 +1,7 @@ +--- + +features: + - | + Introduced variable ``pacemaker_corosync_install`` which allows to skip + pacemaker/corosync deployment in case some other mechanism is used for + masakari monitors.