Limit centos repo disable to centos hosts only

Run dnf or yum to disable centos repos only if used on centos
machine.

Closes-Bug: #1851135
Change-Id: If6f05237c2512c643857765eecf452f5416b3d60
This commit is contained in:
Sagi Shnaidman 2019-11-05 12:49:42 +02:00
parent 31a061099b
commit e4b37201a5

View File

@ -16,8 +16,10 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'qpid-dispatch-tools'
] %}
{% if base_distro in ['centos'] %}
# make sure qpid is pulled from centos-openstack-RELEASE (RDO) repo
RUN {% if distro_package_manager == 'dnf' %}dnf config-manager{% else %}yum-config-manager{% endif %} --disable epel centos-release-opstools extras
{% endif %}
{{ macros.install_packages(qdrouterd_packages | customizable("packages")) }}