Merge "Adds RHEL common element"

This commit is contained in:
Jenkins 2014-07-29 08:08:02 +00:00 committed by Gerrit Code Review
commit e818db25dc
5 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1 @@
This element contains the common installation steps between RHEL os releases.

View File

@ -44,7 +44,11 @@ if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ] ; then
subscription-manager attach --pool $DIB_RHSM_POOL
fi
# optional repo required for diskimage-builder dependency
repos="--enable rhel-6-server-optional-rpms"
if [ "$DISTRO_NAME" == "rhel7" ]; then
repos="--enable rhel-7-server-optional-rpms"
else
repos="--enable rhel-6-server-optional-rpms"
fi
if [[ -n "$DIB_RHSM_REPOS" ]]; then
for repo in $DIB_RHSM_REPOS; do
repos="$repos --enable $repo"

View File

@ -1,4 +1,5 @@
cache-url
dib-run-parts
rhel-common
rpm-distro
yum

View File

@ -1,6 +1,7 @@
cache-url
dib-run-parts
redhat-common
rhel-common
rpm-distro
source-repositories
yum