From 4fcc48b961fdcdd2852d6096e0271392b03fccf9 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 14 Dec 2016 16:36:49 -0600 Subject: [PATCH] Auto-enable heat cinder backup functionality This patch automatically enables heat's cinder backup functionality if cinder's backup service is enabled. This patch depends on a patch applied to the `os_heat` role (see Depends-on below). Closes-Bug: 1650035 Depends-on: I3875cc34ec92ba588d995a6d9c0341977a408ad7 Change-Id: I64db5d2bce6ac74d4d0b0f9314f3b305ac730bd0 --- playbooks/inventory/group_vars/heat_all.yml | 4 ++++ .../notes/heat-using-cinder-backups-f9b4837d25f4b8b7.yaml | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 releasenotes/notes/heat-using-cinder-backups-f9b4837d25f4b8b7.yaml diff --git a/playbooks/inventory/group_vars/heat_all.yml b/playbooks/inventory/group_vars/heat_all.yml index adff6a8c98..91b6a08c56 100644 --- a/playbooks/inventory/group_vars/heat_all.yml +++ b/playbooks/inventory/group_vars/heat_all.yml @@ -18,3 +18,7 @@ heat_service_in_ldap: "{{ service_ldap_backend_enabled }}" # Ensure that the package state matches the global setting heat_package_state: "{{ package_state }}" + +# Only enable the heat cinder backups functionality if the cinder backup +# service is enabled. +heat_cinder_backups_enabled: "{{ (cinder_service_backup_program_enabled is defined and cinder_service_backup_program_enabled | bool) | ternary(True, False) }}" diff --git a/releasenotes/notes/heat-using-cinder-backups-f9b4837d25f4b8b7.yaml b/releasenotes/notes/heat-using-cinder-backups-f9b4837d25f4b8b7.yaml new file mode 100644 index 0000000000..74c15438b7 --- /dev/null +++ b/releasenotes/notes/heat-using-cinder-backups-f9b4837d25f4b8b7.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + If the cinder backup service is enabled with + ``cinder_service_backup_program_enabled: True``, then heat will be + configured to use the cinder backup service. The + ``heat_cinder_backups_enabled`` variable will automatically be set to + ``True``.