Adds kolla_ansible_venv_ansible

This adds a variable that allows you to modify the version of ansible
installed in the kolla-ansible virtualenv. This is useful if you want
to use a customised version of ansible.

Change-Id: I319dd51ed3221826f820fbc0ae3639b89e9c82ea
This commit is contained in:
Will Szumski 2022-03-29 11:30:45 +01:00
parent c9c0019d7e
commit 1375517d2b
4 changed files with 17 additions and 4 deletions

View File

@ -21,6 +21,11 @@ kolla_ansible_venv_python: python3
# Extra requirements to install inside the kolla-ansible virtualenv. # Extra requirements to install inside the kolla-ansible virtualenv.
kolla_ansible_venv_extra_requirements: [] kolla_ansible_venv_extra_requirements: []
# Pip requirement specifier for the ansible package. NOTE: This limits the
# version of ansible used by kolla-ansible to avoid new releases from breaking
# tested code. Changes to this limit should be tested.
kolla_ansible_venv_ansible: 'ansible>=4,<6.0'
# Path to a requirements.yml file for Ansible collections. # Path to a requirements.yml file for Ansible collections.
kolla_ansible_requirements_yml: "{{ kolla_ansible_venv }}/share/kolla-ansible/requirements.yml" kolla_ansible_requirements_yml: "{{ kolla_ansible_venv }}/share/kolla-ansible/requirements.yml"

View File

@ -95,10 +95,7 @@
{% else %} {% else %}
kolla-ansible=={{ kolla_openstack_release }} kolla-ansible=={{ kolla_openstack_release }}
{% endif %} {% endif %}
# Limit the version of ansible used by kolla-ansible to avoid new - "{{ kolla_ansible_venv_ansible }}"
# releases from breaking tested code. Changes to this limit should be
# tested.
- ansible>=4,<6.0
- selinux - selinux
pip: pip:
name: "{{ (kolla_ansible_packages + kolla_ansible_venv_extra_requirements) | select | list }}" name: "{{ (kolla_ansible_packages + kolla_ansible_venv_extra_requirements) | select | list }}"

View File

@ -50,6 +50,11 @@
# Extra requirements to install inside the kolla-ansible virtualenv. # Extra requirements to install inside the kolla-ansible virtualenv.
#kolla_ansible_venv_extra_requirements: #kolla_ansible_venv_extra_requirements:
# Pip requirement specifier for the ansible package. NOTE: This limits the
# version of ansible used by kolla-ansible to avoid new releases from breaking
# tested code. Changes to this limit should be tested.
#kolla_ansible_venv_ansible:
# Path to Kolla-ansible configuration directory. Default is $KOLLA_CONFIG_PATH # Path to Kolla-ansible configuration directory. Default is $KOLLA_CONFIG_PATH
# or /etc/kolla if $KOLLA_CONFIG_PATH is not set. # or /etc/kolla if $KOLLA_CONFIG_PATH is not set.
#kolla_config_path: #kolla_config_path:

View File

@ -0,0 +1,6 @@
---
features:
- |
Adds the ``kolla_ansible_venv_ansible`` configuration option. This allows
you to override the version of ansible installed in the kolla-ansible
virtualenv.