aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSagi Shnaidman <sshnaidm@redhat.com>2019-11-05 12:49:42 +0200
committerSagi Shnaidman <sshnaidm@redhat.com>2019-11-05 12:53:28 +0200
commite4b37201a596dbe242887ba51d7092eaed11a0cf (patch)
tree1435677e3d36b535dbb7ec1d5ed10ab682ab1e5e
parent31a061099b0c518fc43ded1e1a675ad257b6d57d (diff)
downloadkolla-e4b37201a596dbe242887ba51d7092eaed11a0cf.tar.gz
kolla-e4b37201a596dbe242887ba51d7092eaed11a0cf.zip
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
-rw-r--r--docker/qdrouterd/Dockerfile.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/qdrouterd/Dockerfile.j2 b/docker/qdrouterd/Dockerfile.j2
index 6b31af541..e1b3322b2 100644
--- a/docker/qdrouterd/Dockerfile.j2
+++ b/docker/qdrouterd/Dockerfile.j2
@@ -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")) }}