Add neutron_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: If5c860b52af592629317def2c9c21f166a9c6ed1
This commit is contained in:
Guilherme Steinmüller 2019-02-20 17:24:31 +00:00
parent e2340b7f04
commit e61d4fd7c7
2 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,7 @@
venv_install_distro_package_list: "{{ neutron_package_list }}"
venv_pip_install_args: "{{ neutron_pip_install_args }}"
venv_pip_packages: >-
{{ neutron_pip_packages +
{{ neutron_pip_packages | union(neutron_user_pip_packages) +
(neutron_bgp | bool) | ternary(neutron_optional_bgp_pip_packages, []) +
(neutron_fwaas | bool) | ternary(neutron_optional_fwaas_pip_packages, []) +
(neutron_fwaas_v2 | bool) | ternary(neutron_optional_fwaas_pip_packages, []) +

View File

@ -35,6 +35,9 @@ neutron_pip_packages:
- PyMySQL
- python-memcached
# Specific pip packages provided by the user
neutron_user_pip_packages: []
neutron_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]