Horizon: Enable c-bak panel

... when cinder-backup is enabled.

The service is not automatically discovered and the availability should
be declared by the OPENSTACK_CINDER_FEATURES option.

Change-Id: Ieba9b30b6ef32b021a1d04a616b836d2a480f9a1
This commit is contained in:
Takashi Kajinami 2024-05-22 17:58:11 +09:00
parent 6ca9b0cc42
commit f06ba76091
2 changed files with 16 additions and 7 deletions

View File

@ -97,6 +97,7 @@ class { 'openstack_integration::gnocchi':
class { 'openstack_integration::horizon': class { 'openstack_integration::horizon':
cache_backend => $django_cache_backend, cache_backend => $django_cache_backend,
cinder_backup_enabled => true,
ironic_enabled => true ironic_enabled => true
} }

View File

@ -4,6 +4,10 @@
# (optional) The django cache backend # (optional) The django cache backend
# Defaults to 'memcached'. # Defaults to 'memcached'.
# #
# [*cinder_backup_enabled*]
# (optional) Flag to enable cinder-backup panel.
# Defaults to false
#
# [*heat_enabled*] # [*heat_enabled*]
# (optional) Flag to enable heat dashboard # (optional) Flag to enable heat dashboard
# Defaults to false. # Defaults to false.
@ -22,6 +26,7 @@
# #
class openstack_integration::horizon ( class openstack_integration::horizon (
$cache_backend = 'memcached', $cache_backend = 'memcached',
$cinder_backup_enabled = false,
$heat_enabled = false, $heat_enabled = false,
$manila_enabled = false, $manila_enabled = false,
$ironic_enabled = false, $ironic_enabled = false,
@ -76,6 +81,9 @@ class openstack_integration::horizon (
wsgi_processes => 2, wsgi_processes => 2,
keystone_url => $::openstack_integration::config::keystone_auth_uri, keystone_url => $::openstack_integration::config::keystone_auth_uri,
log_level => 'DEBUG', log_level => 'DEBUG',
cinder_options => {
'enable_backup' => $cinder_backup_enabled
},
} }
# TODO(tkajinam) Debian/Ubuntu package does not install the policy files # TODO(tkajinam) Debian/Ubuntu package does not install the policy files