From 654419b4aef92e1f0bfcc2153af5ddcebe75ee5c Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 14 Nov 2023 10:54:00 -0800 Subject: [PATCH] Update RPM example to 1.26 stable Signed-off-by: Derek Nola --- docs/install/methods.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/install/methods.md b/docs/install/methods.md index 38e0e256..2664f966 100644 --- a/docs/install/methods.md +++ b/docs/install/methods.md @@ -63,7 +63,8 @@ The RPMs provide `systemd` units for managing `rke2`, but will need to be config In order to use the RPM repository, on a CentOS 7 or RHEL 7 system, run the following bash snippet: ```bash -cat << EOF > /etc/yum.repos.d/rancher-rke2-1-18-latest.repo +export RKE2_MINOR=26 +cat << EOF > /etc/yum.repos.d/rancher-rke2-1-${RKE2_MINOR}-latest.repo [rancher-rke2-common-latest] name=Rancher RKE2 Common Latest baseurl=https://rpm.rancher.io/rke2/latest/common/centos/7/noarch @@ -71,9 +72,9 @@ enabled=1 gpgcheck=1 gpgkey=https://rpm.rancher.io/public.key -[rancher-rke2-1-18-latest] -name=Rancher RKE2 1.18 Latest -baseurl=https://rpm.rancher.io/rke2/latest/1.18/centos/7/x86_64 +[rancher-rke2-1-${RKE2_MINOR}-latest] +name=Rancher RKE2 1.${RKE2_MINOR} Latest +baseurl=https://rpm.rancher.io/rke2/latest/1.${RKE2_MINOR}/centos/7/x86_64 enabled=1 gpgcheck=1 gpgkey=https://rpm.rancher.io/public.key @@ -85,7 +86,8 @@ EOF In order to use the RPM repository, on a CentOS 8 or RHEL 8 system, run the following bash snippet: ```bash -cat << EOF > /etc/yum.repos.d/rancher-rke2-1-18-latest.repo +export RKE2_MINOR=26 +cat << EOF > /etc/yum.repos.d/rancher-rke2-1-${RKE2_MINOR}-latest.repo [rancher-rke2-common-latest] name=Rancher RKE2 Common Latest baseurl=https://rpm.rancher.io/rke2/latest/common/centos/8/noarch @@ -93,9 +95,9 @@ enabled=1 gpgcheck=1 gpgkey=https://rpm.rancher.io/public.key -[rancher-rke2-1-18-latest] -name=Rancher RKE2 1.18 Latest -baseurl=https://rpm.rancher.io/rke2/latest/1.18/centos/8/x86_64 +[rancher-rke2-1-${RKE2_MINOR}-latest] +name=Rancher RKE2 1.${RKE2_MINOR} Latest +baseurl=https://rpm.rancher.io/rke2/latest/1.${RKE2_MINOR}/centos/8/x86_64 enabled=1 gpgcheck=1 gpgkey=https://rpm.rancher.io/public.key