Merge "Enable minimum CentOS repositories"

This commit is contained in:
Jenkins 2017-08-04 14:04:00 +00:00 committed by Gerrit Code Review
commit 125ea82888

View File

@ -77,13 +77,20 @@
template-name: "{template-name}"
- zuul-git-prep-upper-constraints
- shell: |
# EPEL must be enabled because some deps from bindep.txt are
# otherwise not available
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
# default that can cause package conflicts. We must disable all of
# them here and only enable base, updates, and epel.
if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then
sudo yum-config-manager --disable \*
sudo yum-config-manager --enable base
sudo yum-config-manager --enable epel
sudo yum-config-manager --enable updates
fi
- install-distro-packages
- shell: |
# NOTE(mhayden): EPEL is no longer required after installing distro
# packages with bindep. Individual roles may re-enable EPEL if they
# need it for their package installation tasks.
if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then
sudo yum-config-manager --disable epel
fi