Skip to content

Commit f3c5ed6

Browse files
authored
Merge pull request #55426 from fzdarsky/fix-osdocs-5142-and-5143
OSDOCS-5142 and OSDOCS-5143: Use RHEL major version instead of full version
2 parents fbc077c + a88ceeb commit f3c5ed6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

_attributes/attributes-microshift.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
:experimental:
55
:imagesdir: images
66
:OCP: OpenShift Container Platform
7+
:ocp-version: 4.12
78
:rhel-major: rhel-8
89
:op-system-first: Red Hat Enterprise Linux (RHEL)
910
:op-system: RHEL
1011
:op-system-ostree-first: Red Hat Enterprise Linux (RHEL) for Edge
1112
:op-system-ostree: RHEL for Edge
1213
:op-system-version: 8.7
14+
:op-system-version-major: 8
1315
:op-system-ram: 2GB RAM
1416
:op-system-chip: two-core AMD64 1.5GHz processor

modules/microshift-adding-repos-to-image-builder.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Use the following procedure to add the {product-title} repositories to Image Bui
2020
[source,terminal,subs="attributes+"]
2121
----
2222
$ sudo subscription-manager repos
23-
--enable rhocp-{ocp-version}-for-rhel-{op-system-version}-$(uname -i)-rpms
24-
--enable fast-datapath-for-rhel-{op-system-version}-$(uname -i)-rpms
23+
--enable rhocp-{ocp-version}-for-rhel-{op-system-version-major}-$(uname -i)-rpms
24+
--enable fast-datapath-for-rhel-{op-system-version-major}-$(uname -i)-rpms
2525
----
2626

2727
. Install the `reposync` and `createrepo` tools by running the following command:
@@ -37,8 +37,8 @@ $ sudo yum install -y yum-utils
3737
----
3838
$ sudo reposync --arch=$(uname -i) --arch=noarch --gpgcheck \
3939
--download-path REPO_PATH=/var/repos/microshift-local \
40-
--repo=rhocp-{ocp-version}-for-rhel-{op-system-version}-$(uname -i)-rpms \
41-
--repo=fast-datapath-for-rhel-{op-system-version}-$(uname -i)-rpms
40+
--repo=rhocp-{ocp-version}-for-rhel-{op-system-version-major}-$(uname -i)-rpms \
41+
--repo=fast-datapath-for-rhel-{op-system-version-major}-$(uname -i)-rpms
4242
----
4343

4444
. Remove `coreos` packages to avoid conflicts by running the following command:

0 commit comments

Comments
 (0)