https://rancher.com/ logo
Title
p

polite-translator-35958

03/30/2023, 6:06 PM
I asked a question about rpm.rancher.io over in #general (https://rancher-users.slack.com/archives/C3ASABBD1/p1680194007334849) but figured I’d ask here as well. I want to instal rke2 via yum. If I follow docs.rke2.io/install/methods#enterprise-linux-8 I can install
yum install rke2-server
but I’d really like to add rpm.rancher.io to my company’s Artifactory server as a remote so that we can cache the rpms locally. I can’t seem to browse rpm.rancher.io trees and I can’t seem to configure an Artifactory Remote for it. Anyone ever done this? Anyone ever mirrored one of the rpm.rancher.io repos?
c

creamy-pencil-82913

03/30/2023, 6:23 PM
rpm.rancher.io isn’t a single repository. There are many repos on there. It’s a S3 bucket though so you can’t just browse it, you’d need to know the mirror baseurl for the specific repo you want. You should be able to pull that out of the repos that rke2 adds as part of the installation.
p

polite-translator-35958

03/30/2023, 6:52 PM
Yeah, that’s what i figured. And I did give Artifactory a url like https://rpm.rancher.io/rke2/latest/1.18/centos/8/x86_64 but that didn’t seem to “just work”
I just copied the URL from the Rancher RKE2 install docs.
Is there a better doc on the available rpm endpoints? http://docs.rke2.io/install/methods#enterprise-linux-8 refers to RKE2 1.18 and I think I actually want 1.24….
c

creamy-pencil-82913

03/30/2023, 7:10 PM
I’m not how artifactory works, but that is a valid repo baseurl. You can confirm with
curl -ks <https://rpm.rancher.io/rke2/latest/1.18/centos/8/x86_64/repodata/repomd.xml>
the paths are just <channel>/<major.minor>/<dist>
So if you want the most recent stable 1.24 release, replace 1.18 with 1.24
p

polite-translator-35958

03/30/2023, 7:20 PM
Okay. Thanks for the confirmation. I’ll keep playing with it!
omg. apologies. I think I just fat fingered something. it works fine in Artifactory 🤦