kayobe/ansible/roles/kolla-ansible/templates/requirements.txt.j2
Pierre Riteau 372058c19f Allow installing extra packages inside the kolla-ansible virtualenv
It may be necessary to install extra Python packages inside the
kolla-ansible virtualenv, such as when required by Ansible plugins. For
example, using the hashi_vault lookup plugin requires the hvac Python
package to be installed.

This patch adds a kolla_ansible_venv_extra_requirements list variable
which contains Python package requirements to add to the kolla-ansible
requirements file. Its default value is an empty list.

Change-Id: Ie0541dc05e2ab94af230d0113a23c544755424c7
2018-09-27 12:20:31 +01:00

16 lines
530 B
Django/Jinja

{% if kolla_ansible_ctl_install_type == 'source' %}
# Install Kolla Ansible from source.
{{ kolla_ansible_source_path }}
{% else %}
# Install Kolla Ansible from PyPI.
kolla-ansible=={{ kolla_openstack_release }}
{% endif %}
# Limit the version of ansible used by kolla-ansible to avoid new releases from
# breaking tested code. Changes to this limit should be tested.
ansible<2.6
{% if kolla_ansible_venv_extra_requirements is defined %}
{% for item in kolla_ansible_venv_extra_requirements %}
{{ item }}
{% endfor %}
{% endif %}