Merge "jenkins: jobs: ansible-role-jobs: Always enable the EPEL repo"

This commit is contained in:
Jenkins 2017-07-11 06:25:17 +00:00 committed by Gerrit Code Review
commit 43e857a8b8
1 changed files with 6 additions and 10 deletions

View File

@ -77,19 +77,15 @@
template-name: "{template-name}"
- zuul-git-prep-upper-constraints
- shell: |
if [[ "{name}" == *"openstack-ansible"* ]]; then
# EPEL must be enabled because some deps from bindep.txt are
# otherwise not available
if [[ -e /usr/bin/yum ]]; then
sudo yum-config-manager --enable epel
fi
# EPEL must be enabled because some deps from bindep.txt are
# otherwise not available
if [[ -e /usr/bin/yum ]]; then
sudo yum-config-manager --enable epel
fi
- install-distro-packages
- shell: |
if [[ "{name}" == *"openstack-ansible"* ]]; then
if [[ -e /usr/bin/yum ]]; then
sudo yum-config-manager --disable epel
fi
if [[ -e /usr/bin/yum ]]; then
sudo yum-config-manager --disable epel
fi
- shell: |
# Allow Jenkins user to ssh into localhost