Adds RHEL common element
This element contains the installation steps common to RHEL operating system versions. Change-Id: I37cce0bd5b5d31525f1335ecd416be570d36ad61
This commit is contained in:
parent
d9d43c6c03
commit
7f78be9318
1
elements/rhel-common/README.md
Normal file
1
elements/rhel-common/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
This element contains the common installation steps between RHEL os releases.
|
@ -44,7 +44,11 @@ if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ] ; then
|
|||||||
subscription-manager attach --pool $DIB_RHSM_POOL
|
subscription-manager attach --pool $DIB_RHSM_POOL
|
||||||
fi
|
fi
|
||||||
# optional repo required for diskimage-builder dependency
|
# optional repo required for diskimage-builder dependency
|
||||||
|
if [ "$DISTRO_NAME" == "rhel7" ]; then
|
||||||
|
repos="--enable rhel-7-server-optional-rpms"
|
||||||
|
else
|
||||||
repos="--enable rhel-6-server-optional-rpms"
|
repos="--enable rhel-6-server-optional-rpms"
|
||||||
|
fi
|
||||||
if [[ -n "$DIB_RHSM_REPOS" ]]; then
|
if [[ -n "$DIB_RHSM_REPOS" ]]; then
|
||||||
for repo in $DIB_RHSM_REPOS; do
|
for repo in $DIB_RHSM_REPOS; do
|
||||||
repos="$repos --enable $repo"
|
repos="$repos --enable $repo"
|
@ -1,4 +1,5 @@
|
|||||||
cache-url
|
cache-url
|
||||||
dib-run-parts
|
dib-run-parts
|
||||||
|
rhel-common
|
||||||
rpm-distro
|
rpm-distro
|
||||||
yum
|
yum
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
cache-url
|
cache-url
|
||||||
dib-run-parts
|
dib-run-parts
|
||||||
redhat-common
|
redhat-common
|
||||||
|
rhel-common
|
||||||
rpm-distro
|
rpm-distro
|
||||||
source-repositories
|
source-repositories
|
||||||
yum
|
yum
|
||||||
|
Loading…
Reference in New Issue
Block a user