From 6b51b98282602f09ab5433f775395ceb84fd20c8 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Wed, 26 Jun 2024 22:19:43 +0200 Subject: [PATCH] heat: set backups_enabled based on cinder-backup Change-Id: I96151bb6809a4bf0f17dd3e0e97a654730881869 --- ansible/roles/heat/templates/heat.conf.j2 | 3 +++ .../notes/heat-volumes-backup-enabled-4e9799558677e6cd.yaml | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/heat-volumes-backup-enabled-4e9799558677e6cd.yaml diff --git a/ansible/roles/heat/templates/heat.conf.j2 b/ansible/roles/heat/templates/heat.conf.j2 index 9584b73ac8..77240912a2 100644 --- a/ansible/roles/heat/templates/heat.conf.j2 +++ b/ansible/roles/heat/templates/heat.conf.j2 @@ -103,3 +103,6 @@ trace_sqlalchemy = true hmac_keys = {{ osprofiler_secret }} connection_string = {{ osprofiler_backend_connection_string }} {% endif %} + +[volumes] +backups_enabled = {{ enable_cinder_backup | bool }} diff --git a/releasenotes/notes/heat-volumes-backup-enabled-4e9799558677e6cd.yaml b/releasenotes/notes/heat-volumes-backup-enabled-4e9799558677e6cd.yaml new file mode 100644 index 0000000000..49fd650b89 --- /dev/null +++ b/releasenotes/notes/heat-volumes-backup-enabled-4e9799558677e6cd.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Configures Heat with ``[volumes]/backups_enabled`` based on whether the + ``cinder-backup`` service is enabled.