From ed077b2846af2b412247208316e6881bed65e6bb Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 22 Oct 2014 11:35:29 +1100 Subject: [PATCH] Always install latest EPEL Having issues with the centos7 job, that seem to be because they use an old snapshot that hasn't updated to the latest EPEL. Thus we re-install it to ensure we're getting the latest. Change-Id: I7930f3e05ee953dab80b06142c17d6aa70f2c2d1 --- stack.sh | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/stack.sh b/stack.sh index 3b5fb7459b..ec13338948 100755 --- a/stack.sh +++ b/stack.sh @@ -234,36 +234,41 @@ fi if [[ is_fedora && ( $DISTRO == "rhel6" || $DISTRO == "rhel7" ) ]]; then # RHEL requires EPEL for many Open Stack dependencies - if ! sudo yum repolist enabled epel | grep -q 'epel'; then - echo "EPEL not detected; installing" - # This trick installs the latest epel-release from a bootstrap - # repo, then removes itself (as epel-release installed the - # "real" repo). - # - # you would think that rather than this, you could use - # $releasever directly in .repo file we create below. However - # RHEL gives a $releasever of "6Server" which breaks the path; - # see https://bugzilla.redhat.com/show_bug.cgi?id=1150759 - if [[ $DISTRO == "rhel7" ]]; then - epel_ver="7" - elif [[ $DISTRO == "rhel6" ]]; then - epel_ver="6" - fi - cat <