instack-undercloud/elements/rhos-release/pre-install.d/00-rhos-release
James Slagle d72134b0ae Update to later Delorean repo
Update to a later Delorean trunk repo.  The one we were using was about 3 weeks
old. As part of this, we're able to do some other cleanups:

- Get rid of the instack specific delorean repo setting hook script as it's
  redundant.
- Move the 01-rhos-release hook script to 00-rhos-release, it needs to run
  before the delorean repo setting hook script which runs at 01.
- Use a packaged tripleo-puppet-elements
- Use RDO kilo for extra deps instead of RDO juno

Change-Id: Icfc2eb8d859d487ffe3ef6c0408cdeaf97e9054e
2015-03-12 12:54:49 -04:00

20 lines
435 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
export RHOS_RELEASE=${RHOS_RELEASE:-"6"}
export RHOS_PUDDLE=${RHOS_PUDDLE:-""}
if ! rpm -q rhos-release; then
rpm -Uvh http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-latest.noarch.rpm
fi
if [ -z "$RHOS_PUDDLE" ]; then
rhos-release -d $RHOS_RELEASE
else
rhos-release -d -p $RHOS_PUDDLE $RHOS_RELEASE
fi
yum-config-manager --enable rhelosp-rhel-7-server-opt