MemcachedCache backend was removed in django 4.1[1]. The latest horizon
requires django>=4.2[2] so we are no longer able to use the backend.
[1] 05f3a6186e
[2] 605a515ebc31beb66ff46cb193bc96c62d086ff6
Change-Id: Ia8c3f11aa33d4a48577be83c3372229818789543
This adds the custom_wsgi_process_options parameter to
the horizon class that is passed down to the
horizon::wsgi::apache class when configure_apache is
set to true.
Change-Id: I986aeb9766a777eaf82f1f2fccfed95b380dc4c7
... and also validate input for file mode using the existing type
definition from puppetlabs-stdlib.
Depends-on: https://review.opendev.org/930837
Change-Id: I688824ebcc2042548dc18f60b715b11c1d7cdb2f
Support for json format has been removed[1]. Also require boolean
parameter for purge_config.
[1] d689704739abac1711403b3379537e80de212d91
Change-Id: Ib243acde3d31f599efe6cbbc67bc651212d71e98
This value passed to this option should be rendered as a list value.
Note that this change enforces usage of an array value to make
users aware of the change more certainly.
Change-Id: Ic3b7a46ebeba9edbccbe63a6616ecb6c94fe9d4e
puppetlabs-stdlib provides the type definition to validate HTTP(s) URL
string. Use the type to validate parameters which expect HTTP(s) URLs.
Change-Id: I676c6eafa9dfbc361744f753493b630ef786789a
Currently, if a users gives invalid input type for available_themses,
the logic ignores the input and reflect nothing in the config file,
which can cause unexpected results. This ensures the given input is
a hash value.
This also adds validations to ensure only required values are included
by the hash.
Change-Id: I61aefe65e6218a79dce7a0633cb0ceb13b0021b4
This fixes the missing notifications so that the httpd service is
properly restarted after config files are updated.
This also realigns package resources for separate dasobhards to
the global install phase because these packages should be installed
before config phase.
Related-Bug: #2048037
Change-Id: I8331c6c528391401c57b450be6bf75829179a9f8
The COMPRESS_ENABLED option controls whether the compression should be
enabled. This adds support for this option.
Change-Id: Ie3e48afc50770b121daacb90d8c70cf241efd330
This backend was deprecated in django 3.2 and was removed in 4.1.
At the time of writing, all of the supported distributions provide
django 3.2 which contains the deprecation, so we can deprecate its
support now.
Change-Id: Ic0781aa5cd2100ded69ec262cffd834b0de86495
In Debian, some files are installed into local_settings.d by their
packages and these conflict with the options added to local_settings.
This introduces an option to purge the directory.
Change-Id: I7e074f78b15ab22d86d6a6a10f573cfc4052023a
The horizon package in Debian installs the wsgi.py file at a path
different from the other distros.
Closes-Bug: #2043371
Change-Id: Idb8550dd534cd2a1bb442cd2e2256f1a8fc8d89e
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
We already added these validations to the horizon class, but having
the same in the underlying implementation allows us to ensure
the supported types are passed down.
Change-Id: I591f7ee273030f16184d8b53768b3594efc22e35
The SESSION_TIMEOUT parameter in horizon defaults to 3600. This updates
the default in our module to use the consistent default.
Change-Id: Icb609fad8ce95f867fe467064995e665e42f253c
The oslo.policy library has implementations to detect change in policy
rules and reload the new rules without service restart.
Change-Id: I87f25b0b760f326671caf9874bff806261139956
The actual option in horizon was set to True by default before [1] was
merged. This restores the old default value.
[1] 54a31c91fdd3ae24fc9370ecf9cbcee8b42e51fc
Change-Id: Iaa64ba9d475b0dbfcbd53af8b777ef94cae85c0b
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
This parameter was deprecated during the previous cycle[1] because it
has had no effect.
[1] 4f3e975a9e50048db4abd14c52f532298212f88a
Change-Id: I5bb84e271c0191be809538331de703b47560ac4d
A few parameters requires absolute paths because these are eventually
used as the path property of file resources.
Change-Id: Ie5bb8c4174f624813c376df80768213ebbff13b8
Some logics (especially ones in templates) require specific data types.
This adds a few more type validations to avoid users from passing
unexpected types of inputs.
Change-Id: I7f77203f3eb431e96fde1fdfae0f0c51b7a8aaed