Add horizon_user_pip_packages variable

With this variable, users would be able to extend
the list of pip packages in case of needing an
extra pip package.

Currently if we need an extra pip package we need
to override the existing list.

Change-Id: I9b41af83b473a19a3097e4754c17928b23b968d5
This commit is contained in:
Guilherme Steinmüller 2019-02-20 19:02:48 +00:00
parent 46ce9ed999
commit 554c6bd1fe
2 changed files with 4 additions and 1 deletions

View File

@ -397,6 +397,9 @@ horizon_pip_packages:
- python-memcached
- python-keystoneclient
# Specific pip packages provided by the user
horizon_user_pip_packages: []
# Optional pip packages for additional dashboards
# TODO(odyssey4me):
# Simplify this when we are no longer using the py_pkgs plugin

View File

@ -67,7 +67,7 @@
venv_install_destination_path: "{{ horizon_bin | dirname }}"
venv_pip_install_args: "{{ horizon_pip_install_args }}"
venv_pip_packages: >-
{{ horizon_pip_packages + horizon_optional_pip_packages +
{{ horizon_pip_packages | union(horizon_user_pip_packages) + horizon_optional_pip_packages +
(horizon_enable_blazar_ui | bool) | ternary(horizon_blazar_optional_pip_packages, []) +
(horizon_enable_cloudkitty_ui | bool) | ternary(horizon_cloudkitty_optional_pip_packages, []) +
(horizon_enable_designate_ui | bool) | ternary(horizon_designate_optional_pip_packages, []) +