From 7ffc73f295e481ba2764fc857acb09f7c998cfdb Mon Sep 17 00:00:00 2001 From: Matt Crees Date: Mon, 30 Sep 2024 14:19:32 +0100 Subject: [PATCH] [2023.1 only] Add a script to upgrade RMQ to 3.13 To be used in CI prior to a SLURP upgrade. Change-Id: I7a1c89eba32a3a55e845804bf91c2eab93322c21 --- dev/rabbitmq-pre-slurp-upgrade.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 dev/rabbitmq-pre-slurp-upgrade.sh diff --git a/dev/rabbitmq-pre-slurp-upgrade.sh b/dev/rabbitmq-pre-slurp-upgrade.sh new file mode 100755 index 000000000..5e012ce2f --- /dev/null +++ b/dev/rabbitmq-pre-slurp-upgrade.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -eu +set -o pipefail + +# Install kayobe and its dependencies in a virtual environment. + +PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +source "${PARENT}/functions" + +function main { + echo "Upgrading RabbitMQ to version 3.13" + + config_init + + environment_setup + + control_host_bootstrap + + kayobe kolla ansible run "rabbitmq-upgrade 3.12" + + kayobe kolla ansible run "rabbitmq-upgrade 3.13" +} + +main