10 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov
3288a587f9 Link plugin settings extension separately
At the moment Horizon plugins' local_settings are being symlinked
to the enabled folder, which is not entirely correct.

Today Horizon will produce a warning message during compression in
case a settings file will be present in enabled folder, ie:

WARNING:root:Skipping openstack_dashboard.local.enabled._1699_orchestration_settings because it doesn't have DASHBOARD, PANEL, PANEL_GROUP, or FEATURE defined.

To avoid such warning settings files are being search and symlinked
independently now.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/930272
Change-Id: I5b50bad91f00cd4f5b5c36e30753e88425cf9d13
2024-09-24 15:11:58 +00:00
Dmitriy Rabotyagov
a4ecbfc6dc Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I40ff3ec0393bf90836d943fc09e74d6a5f207b48
2023-07-17 10:25:45 +02:00
Kevin Carter
8f8a84f15c Add uwsgi option to horizon
This change provides the horizon role the ability to deploy its services
using uWSGI instead of apache. This feature produces a minimal horizon
deployment which is perfectly functional in cases where capabilities
like federation and SSL terminated all the way through are not needed.

Change-Id: I457a111511543731746d868ae7f7184743e5703b
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
2022-09-21 01:18:34 +00:00
Dmitriy Rabotyagov
3c20e3607e Improve defining horizon_lib_dir
Instead of hardcoding lib directory for distro installs, we can
retrieve it dynamically based on the horizon.__file__ output

Change-Id: I8e87f9a9945b7526c90ca8c4dc09e43a86ab62e0
Closes-Bug: #1950798
2022-02-04 11:40:17 +00:00
Shannon Mitchell
32a9e2b808 Broken panel registration fix
Fixes broken panel registration for source install method
due to python 3 changes changing the horizon_lib_dir path
dynamically.  This sets changes the horizon_dashboard_panel_dir
var to utilize the horizon_lib_dir fact being set in in the
horizon_install_source.yml playbook.

Closes-Bug: 1848561

Depends-On: https://review.opendev.org/689323
Change-Id: Ide5181c14fdc2c67df4df3adaa155d5959b4c468
2019-10-18 07:50:43 +00:00
Jonathan Rosser
20e47c9e4b Add python3 compatibility to horizon role
* Remove horizon_python_lib_dir, this is not used anywhere
* Autodetect the horizon_lib_dir for source installs
* Remove hardcoded python2.7 path from uwsgi template

Change-Id: I0747ad5c50c0c007385b4756f1b386363bafcf93
2019-09-10 06:07:05 +00:00
Dmitriy Rabotjagov
9a25d2507b Implements masakari-dashboard to be installed in horizon
Added masakari dashboard to horizon installation.
As for now it's installation is available only from source.

Change-Id: I07937e2d97080ec5f4aece61a6bf032cd8790f5f
Implements: blueprint masakari-ansible-plugin
2018-11-21 11:51:54 +00:00
Jesse Pretorius
0fcfbf374c Remove unnecessary package install duplication
Currently the devel packages are installed everywhere,
but they only need to be where the wheels are built.

Also, there is already a task to install the packages
needed on the target hosts when installing - so we do
not need to give the same list to the venv install role
because they will already have been installed.

Change-Id: Ifdff299a81cbba90cf819c9a628650c8b1be3d6a
2018-10-30 19:21:05 +00:00
Dmitriy Rabotjagov
3d60097f94 Re-written dashboards linking.
Old style of dashboards linking was replaced with find module.
horizon_panels variable was removed. Now deployer may install extra
dashboard with pip package, and it will be linked by role
in case of correct structure and naming.
Task for linking found dashboards was moved to horizon_install_source,
as we don't need linking during installation from packages.
Added _dashboard_panels_location - it's a list with subdirs inside
dashboard folders, where panels should be located.

horizon_panel_enable_state variable was also removed, as we
don't try to link dashboards in post_install anymore.

Depends-on: I708b5cf32e5cce6a18624d0b3be0cd4c828ad389
Change-Id: Ia76d959aa03ff67703bd41bd7ea418ea49a91df7
2018-09-04 16:01:01 +03:00
Markos Chandras
2af1b7a6c4 Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.

Implements: blueprint openstack-distribution-packages
Change-Id: Ie6eeff541a319967715e619dcdc26177aec5be72
2018-07-23 17:29:14 +01:00