Skip to content

Commit dbe9b5a

Browse files
committed
Add conditional for CentOS 10 - nodepool mirror
1 parent b2e186d commit dbe9b5a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

roles/build_containers/templates/build_containers.sh.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ openstack tcib container image build \
4949
{% endfor %}
5050
{% endif %}
5151
--tcib-extra tcib_release={{ ansible_distribution_major_version }} \
52-
--tcib-extra tcib_python_version={{ (ansible_distribution_major_version is version('9', '<')) | ternary ('3.6', '3.9') }} \
52+
--tcib-extra tcib_python_version={{ (ansible_distribution_major_version is version('10', '<')) | ternary ('3.9', '3.12') }} \
5353
{% if cifmw_build_containers_install_from_source | bool %}
5454
--tcib-extra tcib_package= \
5555
{% endif %}

roles/repo_setup/tasks/ci_mirror.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
set -o pipefail
1313
source /etc/ci/mirror_info.sh
1414
sed -i -e "s|https://trunk.rdoproject.org|$NODEPOOL_RDO_PROXY|g" *.repo
15+
{% if ansible_distribution | lower == 'centos' and ansible_distribution_major_version is not version('10', '==') %}
1516
sed -i -e "s|http://mirror.stream.centos.org|$NODEPOOL_CENTOS_MIRROR|g" *.repo
17+
{% endif %}
1618
args:
1719
chdir: "{{ cifmw_repo_setup_output }}"

0 commit comments

Comments
 (0)