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 <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user