kolla-toolbox: Bump ansible-core to 2.16

2.15 patch was 2023.2 only - because we missed it last cycle [1]

ansible-core 2.16 requires python3.10 which is not the default
python in Rocky Linux 9 - therefore we use 2.15 there for now

[1]: https://review.opendev.org/c/openstack/kolla/+/910148

Change-Id: Ic8cc29230d82f4d1f07a3c97c3dcbcd14ac76074
This commit is contained in:
Michal Nasiadka 2024-03-29 08:23:43 +01:00
parent 3e502dc34d
commit 6efbc371f0
2 changed files with 11 additions and 1 deletions

View File

@ -64,7 +64,6 @@ RUN mkdir -p /requirements \
ENV PATH {{ venv_path }}/bin:$PATH
{% set kolla_toolbox_pip_packages = [
'ansible-core==2.14.*',
'cmd2',
'influxdb',
'openstacksdk',
@ -77,6 +76,12 @@ ENV PATH {{ venv_path }}/bin:$PATH
'pyudev',
] %}
{% if base_package_type == 'rpm' %}
{% set kolla_toolbox_pip_packages = kolla_toolbox_pip_packages + ['ansible-core==2.15.*'] %}
{% else %}
{% set kolla_toolbox_pip_packages = kolla_toolbox_pip_packages + ['ansible-core==2.16.*'] %}
{% endif %}
RUN {{ macros.install_pip(['pip', 'wheel', 'setuptools']) }} \
&& {{ macros.install_pip(kolla_toolbox_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/ansible /usr/share/ansible \

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Kolla toolbox is now using ``ansible-core 2.16`` for DEB
and ``ansible-core 2.15`` for RPM distros.