[CS9] Rework dnf modules
This change makes dnf modules el specific so that we don't always assume certain modules are always used. This is necessary because in c9, the container-tools module is going away. https://gitlab.com/redhat/centos-stream/release-engineering/pungi-centos/-/merge_requests/176 drops the container-tools module stream from cs9 and uses non-modular repo to install podman. Related-Bug: #1949456 Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/816318 Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com> Co-Authored-By: Alex Schultz <aschultz@redhat.com> Change-Id: Ie9a40086660bb56bc5528beba7c0d9154b5e6463
This commit is contained in:
parent
25f97d8e3a
commit
9c479d280b
@ -13,7 +13,14 @@ tcib_actions:
|
||||
crudini --set /etc/dnf/dnf.conf main plugins 1 &&
|
||||
crudini --set /etc/dnf/dnf.conf main skip_missing_names_on_install False &&
|
||||
crudini --set /etc/dnf/dnf.conf main tsflags nodocs
|
||||
- run: if [ '{{ tcib_distro }}' == 'rhel' ]; then {% for item in tcib_packages.modules %}{% set key, value = (item.items() | list).0 %}dnf module -y {{ key }} {{ value }}; {% endfor %}fi
|
||||
- run: >-
|
||||
if [ '{{ tcib_distro }}' == 'rhel' ]; then
|
||||
{%- if "el" ~ tcib_release in tcib_packages.modules %}
|
||||
{% for item in tcib_packages.modules["el" ~ tcib_release] %}{% set key, value = (item.items() | list).0 %}dnf module -y {{ key }} {{ value }}; {% endfor %}
|
||||
{%- else %}
|
||||
echo "WARNING: No modules defined for el{{ tcib_release}}";
|
||||
{%- endif %}
|
||||
fi
|
||||
- run: dnf install -y openstack-tripleo-common-containers
|
||||
- run: cp /usr/share/openstack-tripleo-common-containers/container-images/kolla/base/uid_gid_manage.sh /usr/local/bin/uid_gid_manage
|
||||
- run: chmod 755 /usr/local/bin/uid_gid_manage
|
||||
@ -72,10 +79,16 @@ tcib_packages:
|
||||
- util-linux-user
|
||||
- which
|
||||
modules:
|
||||
- disable: container-tools:rhel8
|
||||
- disable: virt:rhel
|
||||
- enable: container-tools:{{ tcib_rhel_modules['container-tools'] | default('latest' if tcib_release is version('9', '==') else '3.0') }}
|
||||
- enable: mariadb:{{ tcib_rhel_modules['mariadb'] | default('10.5' if tcib_release is version('9', '==') else '10.3') }}
|
||||
- enable: virt:{{ tcib_rhel_modules['virt'] | default('av') }}
|
||||
- enable: redis:{{ tcib_rhel_modules['redis'] | default('5') }}
|
||||
el8:
|
||||
- disable: container-tools:rhel8
|
||||
- disable: virt:rhel
|
||||
- enable: container-tools:{{ tcib_rhel_modules['container-tools'] | default('3.0') }}
|
||||
- enable: mariadb:{{ tcib_rhel_modules['mariadb'] | default('10.3') }}
|
||||
- enable: virt:{{ tcib_rhel_modules['virt'] | default('av') }}
|
||||
- enable: redis:{{ tcib_rhel_modules['redis'] | default('5') }}
|
||||
el9:
|
||||
- disable: virt:rhel
|
||||
- enable: virt:{{ tcib_rhel_modules['virt'] | default('av') }}
|
||||
- enable: redis:{{ tcib_rhel_modules['redis'] | default('5') }}
|
||||
- enable: mariadb:{{ tcib_rhel_modules['mariadb'] | default('10.5') }}
|
||||
tcib_stopsignal: SIGTERM
|
||||
|
Loading…
Reference in New Issue
Block a user