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.