Role os_horizon for OpenStack-Ansible
Go to file
Damian Dabrowski c92f45e3af Fix horizon_enable_ssl logic
Current logic does not allow horizon backend to listen on https
(`horizon_enable_ssl`) if external loadblanacer serves TLS
(`horizon_external_ssl`).
It basically forces backend to listen on plain http in this case which
does not make any sense. It should be possible to enable TLS on both
loadbalancer and horizon backend.

Additionally, with this patch, role defines a proper
HTTP_X_FORWARDED_PROTO header value(it's included in
`horizon_secure_proxy_ssl_header` and
`horizon_secure_proxy_ssl_header_django` and can be set to 'http' or
'https') based on whether external load balancer listens on https
(`horizon_external_ssl`)[1].
For example if loadbalancer listens on https and backend on http,
HTTP_X_FORWARDED_PROTO should be set to 'https'. Otherwise horizon will
respond with redirection to http.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto

Change-Id: I7706e52c01b3f0d72ea383a0476045e606078cff
2023-04-11 19:35:00 +02:00
defaults Change default value for horizon_enable_ssl 2023-04-08 00:01:54 +00:00
doc Switch sphinx language to en 2022-05-30 16:01:26 +02:00
examples Merge "Trivial: Fix the pep8 warning" 2018-07-11 20:03:53 +00:00
handlers Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
meta Remove references to unsupported operating systems 2021-03-10 12:18:02 +00:00
releasenotes Change default value for horizon_enable_ssl 2023-04-08 00:01:54 +00:00
tasks Fix horizon_enable_ssl logic 2023-04-11 19:35:00 +02:00
templates Fix horizon_enable_ssl logic 2023-04-11 19:35:00 +02:00
tests Use Tempest for dashboard test instead of tempest-horizon 2021-02-09 13:54:02 -06:00
vars Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
zuul.d Return zuul integrated jobs 2022-07-05 11:47:07 +02:00
.gitignore Updated from OpenStack Ansible Tests 2019-08-20 03:06:05 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:39:48 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2021-03-12 22:19:06 +00:00
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 2020-05-12 23:35:19 +03:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
manual-test.rc Use centralised test scripts 2016-09-28 08:16:55 +00:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-05-06 19:08:53 +08:00
run_tests.sh Updated from OpenStack Ansible Tests 2022-03-31 20:25:07 +00:00
tox.ini Cleanup setup.py config 2022-03-31 10:39:09 -04:00
Vagrantfile Updated from OpenStack Ansible Tests 2021-12-17 16:46:09 +00:00

Team and repository tags

image

OpenStack-Ansible Horizon

This Ansible role installs and configures OpenStack Horizon served by the Apache webserver. Horizon is configured to use Galera for session caching and Memcached for other caching.

Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-os_horizon/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/openstack-ansible-os_horizon

The project source code repository is located at:

https://opendev.org/openstack/openstack-ansible-os_horizon/

The project home is at:

https://launchpad.net/openstack-ansible

The bugs can be found at:

https://bugs.launchpad.net/openstack-ansible