Add horizon setting for cinder backup

This change makes the cinder backup enable flag in the Horizon
configuration a variable.

It also enables this flag automatically through group_vars when
cinder_service_backup_program_enabled = True.

Change-Id: Ib64532bbd7a3774f16766de0d3d221579aecc9ff
Closes-Bug: #1504279
This commit is contained in:
Miguel Grinberg 2015-10-14 17:56:45 -07:00
parent 4c2ae40bac
commit cbc7e0eed1
3 changed files with 3 additions and 1 deletions

View File

@ -175,6 +175,7 @@ keystone_service_internaluri_insecure: false
## Horizon
horizon_service_region: "{{ service_region }}"
horizon_enable_cinder_backup: "{% if cinder_service_backup_program_enabled is defined and cinder_service_backup_program_enabled | bool %}True{% else %}False{% endif %}"
## Heat

View File

@ -71,6 +71,7 @@ horizon_disable_password_reveal: False
horizon_enable_password_retrieve: False
# If nova_libvirt_inject_password is set to True, then this can also be enabled:
horizon_can_set_password: False
horizon_enable_cinder_backup: False
## Horizon SSL

View File

@ -246,7 +246,7 @@ OPENSTACK_HYPERVISOR_FEATURES = {
# The OPENSTACK_CINDER_FEATURES settings can be used to enable optional
# services provided by cinder that is not exposed by its extension API.
OPENSTACK_CINDER_FEATURES = {
'enable_backup': False,
'enable_backup': {{ horizon_enable_cinder_backup | bool }},
}
# The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional