Add stable release to image elements

When creating overcloud images the deps repo is
all the time centos7/delorean-deps.repo without
taking into account that when using stable releases
needs to be changed to:

centos7-liberty/delorean-deps.repo
centos7-mitaka/delorean-deps.repo

Change-Id: I8d5e52809b339bc156eb173dca6b3d2436ad0c87
Closes-bug: #1625463
Closes-bug: #1625315
This commit is contained in:
Carlos Camacho 2016-09-20 10:06:27 +00:00
parent 98b9c6a514
commit c52dc5db88
1 changed files with 7 additions and 1 deletions

View File

@ -6,9 +6,15 @@ export DELOREAN_REPO_FILE=${DELOREAN_REPO_FILE:-"delorean.repo"}
# delorean requires delorean-deps
if [[ "rhel7 centos7" =~ "$DISTRO_NAME" ]]; then
if [ -z "$STABLE_RELEASE" ]; then
curl http://trunk.rdoproject.org/centos7/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo
else
curl http://trunk.rdoproject.org/centos7-$STABLE_RELEASE/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo
fi
elif [[ "fedora" =~ "$DISTRO_NAME" ]]; then
curl http://trunk.rdoproject.org/f$DIB_RELEASE/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo
curl http://trunk.rdoproject.org/f$DIB_RELEASE/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo
fi
if [ -n "$DELOREAN_REPO_URL" ]; then