diff --git a/defaults/main.yml b/defaults/main.yml index 852c0093..af295908 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -448,6 +448,9 @@ keystone_pip_packages: - uWSGI - pyngus +# Specific pip packages provided by the user +keystone_user_pip_packages: [] + # optional pip packages keystone_optional_oslomsg_amqp1_pip_packages: - oslo.messaging[amqp1] diff --git a/tasks/keystone_install_source.yml b/tasks/keystone_install_source.yml index a09c958a..53c573ba 100644 --- a/tasks/keystone_install_source.yml +++ b/tasks/keystone_install_source.yml @@ -43,7 +43,7 @@ venv_install_destination_path: "{{ keystone_bin | dirname }}" venv_pip_install_args: "{{ keystone_pip_install_args }}" venv_pip_packages: >- - {{ keystone_pip_packages + + {{ keystone_pip_packages | union(keystone_user_pip_packages) + (keystone_oslomsg_amqp1_enabled | bool) | ternary(keystone_optional_oslomsg_amqp1_pip_packages, []) }} venv_facts_when_changed: - section: "keystone"