1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/rhel-preparing-node.adoc
2019-06-03 16:52:36 -04:00

73 lines
1.7 KiB
Plaintext

// Module included in the following assemblies:
//
// * machine_management/adding-rhel-compute.adoc
// * machine_management/more-rhel-compute.adoc
[id="rhel-preparing-node_{context}"]
= Preparing a RHEL compute node
Before you add a Red Hat Enterprise Linux (RHEL) machine to your {product-title}
cluster, you must register each host with Red Hat
Subscription Manager (RHSM), attach an active {product-title} subscription, and
enable the required repositories.
. On each host, register with RHSM:
+
----
# subscription-manager register --username=<user_name> --password=<password>
----
. Pull the latest subscription data from RHSM:
+
----
# subscription-manager refresh
----
. List the available subscriptions:
+
----
# subscription-manager list --available --matches '*OpenShift*'
----
. In the output for the previous command, find the pool ID for an {product-title} subscription and attach it:
+
----
# subscription-manager attach --pool=<pool_id>
----
. Disable all yum repositories:
.. Disable all the enabled RHSM repositories:
+
----
# subscription-manager repos --disable="*"
----
.. List the remaining yum repositories and note their names under `repo id`, if any:
+
----
# yum repolist
----
.. Use `yum-config-manager` to disable the remaining yum repositories:
+
----
# yum-config-manager --disable <repo_id>
----
+
Alternatively, disable all repositories:
+
----
yum-config-manager --disable \*
----
+
Note that this might take a few minutes if you have a large number of available repositories
. Enable only the repositories required by {product-title} {product-version}:
+
----
# subscription-manager repos \
--enable="rhel-7-server-rpms" \
--enable="rhel-7-server-extras-rpms" \
--enable="rhel-7-server-ose-4.1-rpms"
----