The COMPRESS_ENABLED option controls whether the compression should be
enabled. This adds support for this option.
Change-Id: Ie3e48afc50770b121daacb90d8c70cf241efd330
The package name of ironic-ui in Ubnutu/Debian does not follow
the general naming rule and the existing horizon::dashboard can't be
used.
Closes-Bug: #2033929
Change-Id: I7703550897c6b31f2b45ffce75f0ab2bae7a4157
Horizon recently introduced TOTP support. This introduces a few new
parameters to allow users to enable the feature.
Depends-on: https://review.opendev.org/c/openstack/horizon/+/885570
Change-Id: I0b8d86c292715ffbb6d75dadcda7b51b1c190641
This variable is not actually used thus can be removed from the file.
Also the os module is not really used in the file and we don't have to
import it now.
Change-Id: Ibefbb147404e22684bc5d9ae0870b706929e4009
Since [1] was merged, all the URL options are set according to
the WEBROOT option. Also the trailing slash is added automatically.
[1] 2a772d64800070689478a49b6aa26a5893b2067b
Change-Id: Ic13cd2e541f21d07ed1b2b1337eeae042dbe2daa
Currently we completely replace some dict values in local_settings but
this causes a few problems.
- Some keys(eg OPENSTACK_HYPERVISOR_FEATURES['enable_quotas']) are
missing from the default dict value, which overrides its default
value (True) in Horizon
- We have to maintain the default values defined in our manifest
according to any update in Horizon side.
This updates the logic to override keys only when requested, so that
the configuration basically leverage the defaults defined in Horizon.
Change-Id: I0fa105e595ff053d389e75004638af5856dbb734
The default value of can_set_mount_point
that we merge into the hypervisor_options
parameter is not the Horizon default.
This removes the defaults that sets the
can_set_mount_point to true by default when
Horizon has this as false by default, it's
also only really functional on a very specific
hypervisor.
This also removes the can_set_password config
that we set to False that already is the Horizon
default.
Change-Id: Iba05bce817da1c1bc51acb06b6bdc69beba2ea26
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
The OPENSTACK_USE_SIMPLE_TENANT_USAGE option in horizon expects only
boolean values and using a different type can result in unexpected
result.
This enforces the correct value type to ensure we accept only boolean
to avoid such problems.
Change-Id: Ib3735d354f658dee64a7fd01e609a11d174dbf8d
The OPENSTACK_SSL_NO_VERIFY option defaults to False. This ensures
we describe its default value in parameter description so that users
can more easily understand the effective value without explicit
definition.
Change-Id: Ifefb3f90970d13a92f79b64e1f453fb7dc3e5d8d
Horizon supports loading secret key from a separate file. This change
updates the configurations to use that feature instead of putting
the key content in local_settings.
This allows us to more strictly limit access to the key content.
Change-Id: Ie91c2286afc102145ee49f5ef91b250e92af16a7
This removes the hard-coded default values for the following options
so that we can leverage the defaults defined in Horizon itself.
- API_RESULT_LIMIT
- API_RESULT_PAGE_SIZE
- DROPDOWN_MAX_ITEMS
Change-Id: Id392b959ff05bba0dd75343313b2c3f956d29565
This fixes one missing comma in octavia dashboard configuration to
fix the syntax error.
Closes-Bug: #2015271
Change-Id: If896f922db09396415a095fb9a8062eca32a9d06
This omits override of help_url unless users explicitly define their
desired value, to reduce the hard-coded defaults maintained in this
module. This also effectively fixes the different scheme (http, not
https) used by default.
Change-Id: I40b4b20ab10650ae08e49b5773b838653c3c9c07
The images_panel key in HORIZON_CONFIG setting dict was once added
during Newton cycle but was removed when ANGULAR_FEATURES option was
added in the same cycle[1].
Because the parameter has have no effect for long, this deprecates
the parameter so that we can remove it in a future release instead of
fixing it.
[1] https://review.opendev.org/c/openstack/horizon/+/353377
Change-Id: I376af3b7c4525036bf1bb449cb71490495395f2c
This change ensures the parameters used in if-statement take boolean
values, because usage of a different type(eg. String) can cause
unexpected evaluation result.
[vagrant@localhost ~]$ cat foo.pp
$foo = false
$bar = 'False'
$baz = 'false'
if $foo { warning('foo') }
if $bar { warning('bar') }
if $baz { warning('baz') }
[vagrant@localhost ~]$ puppet apply foo.pp
Warning: Scope(Class[main]): bar
Warning: Scope(Class[main]): baz
Notice: Compiled catalog for localhost.localdomain in environment production in 0.02 seconds
Notice: Applied catalog in 0.01 seconds
[vagrant@localhost ~]$
Change-Id: I5c327c37e700829ffb80b9f58d15607aa883bdc1
This is follow-up of 625275af36 and
removes the temporal logic to keep compatibility, because we have kept
the warning message for several cycles.
Related-Bug: #1946277
Change-Id: I1b11305df67dbe3127642a96bda429faae0059d5
This change allows a cloud-deployer using WEBSSO to not expose a
form for attempting to log in using Keystone Credentials.
Closes-Bug: #1983855
Change-Id: Iae15a5dac8f3de0f70dad5af8837177f67857428
default_dashboard was deprecated a long ago in Horizon[1] and
Having that parameter in local_settings triggers the following warning
message.
```
WARNING:root:"dashboards" and "default_dashboard" in (local_)settings
is DEPRECATED now and may be unsupported in some future release.
The preferred way to specify the order of dashboards and the default
dashboard is the pluggable dashboard mechanism (in ...).
```
This change removes that parameter hard-coded in the template file to
get rid of the warning message. Currently the project dashboard is
shown first in Horizon by default so removing the parameter does not
cause any change in behavior.
This also removes these deprecated parameters from the template file
used in unit tests.
[1] 75bc2e6aa86d31f60288021694699302b3873af3
Closes-Bug: #1983390
Change-Id: I8cd5346a553db9ba9f6bdf8ffdd9e7d89d16c4be
The ugettext_lazy method has been deprecated since Django 3.0[1].
This was already replaced in Horizon repo by [2].
[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee
Change-Id: Ic1859cd40826dfef7fe392121cb8f3401faaf593
This change introduces the new horizon::dashboards::designate class,
which allows users to manage the independent configuration file for
designate dashboard (_1799_dns_settings.py).
Depends-on: https://review.opendev.org/823238
Change-Id: Ie36d70b7b9fdde5f1ceb4be59cfb4f5c16981e7d
... because the parameter was deprecated during Xena cycle in favor of
the separate classes for dashboard plugins.
Change-Id: I0105dca66abed6b4252df93d71c10d838dda1a7b
The SYSTEM_SCOPE_SERVICES parameter was introduced during stable/yoga,
to enable usage of system scope tokens per service. This change adds
support for the parameter so that users can customize the parameter
using this module.
Change-Id: I921a913c51801083a2f799ab3d0d1debc62c8f2a
Debug log from the django.template is known to be too verbose. Recently
the sample local_settings.py in Horizon repo has been updated to
disable debug log from this module[1].
This change follows that decision and keep the default INFO log level
even when log_level='DEBUG' is set. Users are still able to enable
debug log from this module by setting the new django_template_log_level
parameter.
[1] 85e20a62e2b986f066484147d0a15446d2699559
Related-Bug: #1720893
Change-Id: I9c301db691da4adce1b9f6c40b7a3583e7e8a6f5
This change introduces a new parameter to determine log level of
the django module. Debug log from this module is known to be quite
verbose though most of them are warning caused by implementation and
not useful for operators. Adding a new parameter allows enabling debug
for all modules except for the django module.
Change-Id: Ice284786f9b34f328ff72e8d5a50dff03b827f73
... for better readability. This change also fixes the inconsistent
indents (2 spaces vs 4 spaces).
Change-Id: If324fc52c18f12a7ace2f6ee7a27a97e202b7f73