Consolidate all the installs of python memcache
bindings to use ensure_package. Right now we are
mixing the usage of ensure_resources on some places
which causes redecalaration issues.
Since the resources need to be identical in order
to not raise redeclaration issues we cannot have
the horizon-package tag on the package.
Change-Id: I0a76cbe45774bbf6871c1803c056bc2f6b3b6c0d
This patch allows operators to add multiple log handlers for horizon,
so that operators can define multiple outputs.
Change-Id: I9e12762538e70bcf838f4626c8ea9e3489bb7014
In CentOS 8.x and Fedora, we expect to have python3 package, while we
expect to have python2 in 7.x .
Fix unit tests to expect the correct version according to os major
version.
Change-Id: I298706690ee73db76678653841514de120c61e27
"DROPDOWN_MAX_ITEMS" horizon parameter was hardcoded in a ruby
template. Hence, it was not possible to manage it using heat.
This fix will allow user to manage "DROPDOWN_MAX_ITEMS" from
heat template.
Change-Id: I121a4ad2070cfef173c572a3d25788abbbf16989
Closes-Bug: #1813786
Adds the access_log_format parameter that can be used to set
the log format that is used in the vhosts that puppetlabs-apache
manages.
Adds the same parameter to the init class to make sure that you
can set it when managing apache from there and not including the
wsgi::apache class manually.
The default value of the parameter is the same as enforced in other
modules that has the access_log_format, which is false. That is the
default that the puppetlabs-apache module has.
Change-Id: Ie8ac84c6231ad55c5974a95b50238f0d006b6336
A (long) time ago keystone-bootstrap changed the
default member role that is created to member from
the legacy _member_ role.
This changes the default value in horizon to conform
with what is the actual default when bootstrapping
keystone.
Deployments that might still be using _member_ should
set this explicitly.
Change-Id: I8c18b585c71817ec7c5450c425e2ec7bc9a83f18
Used to control the title of the web pages
that horizon renders. Default value is set
to undef which means this option will not be
added to the configuration file and the horizon
default will be used.
If specified it will add the SITE_BRANDING option
to the local_settings file.
Change-Id: I683341f4f948fb9d639a35ce81a66959fe699962
Adds a new parameter named manage_memcache_package that
can be used to set if we should install the python memcache
library if memcache caching is enabled.
Change-Id: I924f837afc756817c202637b1b7db83c125df1d8
The wsgi_processes and wsgi_threads needs to be configureable
from the horizon init class and then passed to horizon::wsgi::apache.
Change-Id: Ic428214d7c84d33272becdb3675252318e8fd1bd
If you want to use horizon with a different cacheing backend you
may run into problems. E.g. with redis it expects a database after
the port.
So introducing a new parameter which allows any string as LOCATION
solves this problem and maybe a couple of others.
Change-Id: Ida54599049f69573d27f477c395f14ae0ec26c3c
Switch from python-memcache to python3-memcache for Debian.
Also uses openstack-dashboard-apache instead of simply
openstack-dashboard (ie: this package contains the Apache
config).
Change-Id: I9c316dd6b3abb758d73760f17b88a393776a873b
These parameters has been deprecated for
more than two years.
Let's remove them and add release notes.
Change-Id: I229f49ac4ce02e0b1ddbd0a2f111739ce3059f37
Closes-Bug: 1767114
Adds support to override the http and/or https
ports that is passed down to the horizon::wsgi::apache
class. No default values has been changed.
Change-Id: I57fd5f3a433c6e123aa0f531630941fabf6ea721
Closes-Bug: 1210719
Adds a new Puppet parameter "horizon_upload_mode" which goes into
the local_settings.py configuration file and allows to change
the parameter "HORIZON_IMAGES_UPLOAD_MODE"
to one of "legacy", "off" or "direct" (default is "legacy").
Change-Id: I2e36227d318dd74267ad23f14595481b379cbbd6
Closes-Bug: 1738814
Horizon has a global override mechanism available to perform
customizations. This change adds customization_module key
to HORIZON_CONFIG dictionary in local_settings.py. The
corresponding template file is also modified to configure the
parameter. Spec tests are added to test the configuration.
Change-Id: Id204b60b2676f49713fb6ce7eede6200221f7163
Closes-Bug: #1722653
New parameter accepts a hash value to configure
the LAUNCH_INSTANCE_DEFAULTS options in horizon
configuration.
Closes-Bug: #1721774
Change-Id: I778b3dc076d611d40205edbe0982141a815e1830
Horizon now has the option of selecting various defaults for the
create image panel. This patch allows configuring those options.
Change-Id: I01d9fc44d957394acc4243f3ee34e6e50eec0bdf
Uncomments the `OPENSTACK_HEAT_STACK` dict and allows to
set `enable_user_pass` in the `local_settings.py.erb`
template
Change-Id: I97874af257a7cbb3eea862645952f6000e3fc3ce
Closes-Bug: #1676366
DISALLOW_IFRAME_EMBED can be used to prevent Horizon from being embedded
within an iframe. Legacy browsers are still vulnerable to a Cross-Frame
Scripting (XFS) vulnerability, so this option allows extra security hardening
where iframes are not used in deployment
Change-Id: I5c540e552efe738bdec8598f9257fa22ae651a76
Related-Bug: #1641882
This is used to tell Django to take into account the X-Forwarded-Proto
header. It is disabled by default as it should only be enabled if one
is running horizon behind a proxy.
Change-Id: Ifed7d4c3409419c01c5b20c707221c1fc76ea09e
The ensure_packages resource forces ensure to present yielding
duplicate definition errors if we override default Package ensure
to latest. We should solve this by using ensure_resources which
does not enforce this.
Change-Id: I1e2ba2b4a8ab31c925bf31ac1838999fc37b268f
Closes-Bug: #1644906
Resolves: rhbz#1392583
By setting ENFORCE_PASSWORD_CHECK to `True`, it displays an 'Admin
Password' field on the Change Password form to verify that it is indeed
the admin logged-in who wants to change the password.
Change-Id: If7af97df7a011569a7e14fbab4f880688d7b82c3
Related-Bug: #1640806
A user can disable the password reveal button in the horizon UI via the
configuration. This change adds the ability to toggle this to True via
the puppet modules.
Change-Id: Iacf899d595a2a3c522df1b96ca527731937ec698
Related-Bug: #1640492
In local_settings.py.erb this value was hardcoded to false.
This change enables the setting of this value as referenced in
https://review.openstack.org/#/c/61032/
Change-Id: Ica6932cf97fd6f2dc00f17d523e28215401a297f
Closes-Bug: 1639851
It removes unnecessary 'processorcount' facts in the tests
as os_workers fact should be used instead 'processorcount'.
Change-Id: Ic4aaf6be4b44b8799a29a44a063614071d1372a4
Review https://review.openstack.org/#/c/339122/ adds parameter
images_panel to HORIZON_CONFIG dict. It requires a default value
to work properly.
This patch add parameter images_panel to set the enabled panel
to legacy (default value) or angular.
Change-Id: I50ca03492464f9fb2f84963352b2e65c14d44953
Extends the class interface to allow the login form's password field
to be automatically completed by the client browser. Defaults to
'off' to maintain backwards compatibility with previous releases.
Change-Id: Id7e2ecd8502bb077679a2820ff0425ad519555d2
Do not hardcode keystone-package tag to memcached package because
resource can already be in catalog with another tag. Keep standard
'openstack' tag.
Change-Id: Iee5f8015cbf40ca0e9a435a7de919ebdb74cf93f
According to horizon patch https://review.openstack.org/#/c/321640/,
horizon now supports versionless keystone endpoint, so we need
to use versionless endpoint by default to be consistent with
other components.
Change-Id: Ie6224ff131321aa4a7bda18e83b56b2d495f27ff
In local_settings.py.erb, OPENSTACK_KEYSTONE_BACKEND is hardcoded.
We needed a new parameter in the module in order to change this to be
configurable.
Change-Id: I3f0859cd0e73012f444191797afc076beb68d7e9
Closes-Bug: #1575227
Change splits the exec for the manage.py to be split into collectstatic
and compress. Previously, both actions were only executed on redhat but
ubuntu requires compress on config change too.
Change-Id: Ib7238f9bc107c372759d1ebbeb88469806267769
Closes-Bug: #1599536