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
This commit is contained in:
Major Hayden 2016-12-14 16:36:49 -06:00
parent a2e3d22a07
commit 4fcc48b961
2 changed files with 12 additions and 0 deletions

View File

@ -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) }}"

View File

@ -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``.