Merge "Enable RabbitMQ feature flags pre-upgrade"
This commit is contained in:
commit
70c6da93b7
@ -43,6 +43,19 @@
|
||||
tags:
|
||||
- rabbitmq
|
||||
|
||||
# Stable feature flags must be enabled pre-upgrade
|
||||
# https://www.rabbitmq.com/docs/feature-flags#version-compatibility
|
||||
- name: Enable stable feature flags pre-upgrade
|
||||
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}[0]"
|
||||
gather_facts: false
|
||||
user: root
|
||||
tasks:
|
||||
- name: Running feature flags tasks from the role
|
||||
import_role:
|
||||
name: rabbitmq_server
|
||||
tasks_from: rabbitmq_feature_flags.yml
|
||||
when: rabbitmq_upgrade | default(false) | bool
|
||||
|
||||
# The cluster must be stopped when doing major/minor upgrades
|
||||
# http://www.rabbitmq.com/clustering.html#upgrading
|
||||
- name: Stop RabbitMQ nodes that are not the upgrader
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Stable RabbitMQ feature flags will be enabled automatically pre-upgrade
|
||||
in order to prevent failures during the upgrade process.
|
Loading…
Reference in New Issue
Block a user