diff --git a/defaults/main.yml b/defaults/main.yml index 862f6d2c..6e95483d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -155,6 +155,11 @@ horizon_swift_file_transfer_chunk_size: 524288 ## Panel horizon_default_panel: overview +# For blacklisting certain Nova extensions uncomment this configuration, +# and add necessary list items. +# horizon_nova_extensions_blacklist: +# - "SimpleTenantUsage" + ## Customization module ## See http://docs.openstack.org/developer/horizon/topics/customizing.html#horizon-customization-module-overrides # horizon_customization_module: /local/path/to/customization_module.py diff --git a/releasenotes/notes/add-nova-extensions-blacklist-8ed18f45aba6a7fb.yaml b/releasenotes/notes/add-nova-extensions-blacklist-8ed18f45aba6a7fb.yaml new file mode 100644 index 00000000..59e7758f --- /dev/null +++ b/releasenotes/notes/add-nova-extensions-blacklist-8ed18f45aba6a7fb.yaml @@ -0,0 +1,11 @@ +--- +features: + - | + Deployers can now blacklist certain Nova extensions + by providing a list of such extensions in + ``horizon_nova_extensions_blacklist`` variable, for example: + + .. code-block:: yaml + + horizon_nova_extensions_blacklist: + - "SimpleTenantUsage" diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index 92e308de..7b1455c7 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -711,6 +711,14 @@ REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES'] # http://tinyurl.com/anticlickjack #DISALLOW_IFRAME_EMBED = True +{% if horizon_nova_extensions_blacklist is defined %} +OPENSTACK_NOVA_EXTENSIONS_BLACKLIST = [ +{% for item in horizon_nova_extensions_blacklist %} + '{{ item }}', +{% endfor %} +] +{% endif %} + {% if horizon_site_name is defined %} SITE_BRANDING = '{{ horizon_site_name }}' {% endif %}