feat: adding rke2

- add k8s::rke2 role + hieradata
- manage rke2 repos
This commit is contained in:
Ben Vincent 2025-09-06 23:01:57 +10:00
parent 65fb52da55
commit bfd7ec50db
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,25 @@
---
#profiles::packages::include:
# bridge-utils: {}
# cephadm: {}
# additional repos
profiles::yum::global::repos:
rancher-rke2-common-latest:
name: rancher-rke2-common-latest
descr: rancher-rke2-common-latest
target: /etc/yum.repos.d/rke2-common.repo
baseurl: https://rpm.rancher.io/rke2/latest/common/centos/%{facts.os.release.major}/noarch
gpgkey: https://rpm.rancher.io/public.key
mirrorlist: absent
rancher-rke2-1-33-latest:
name: rancher-rke2-1-33-latest
descr: rancher-rke2-1-33-latest
target: /etc/yum.repos.d/rke2-1-33.repo
baseurl: https://rpm.rancher.io/rke2/latest/1.33/centos/%{facts.os.release.major}/x86_64
gpgkey: https://rpm.rancher.io/public.key
mirrorlist: absent
#profiles::packages::include:
# bridge-utils: {}
# cephadm: {}

View File

@ -0,0 +1,10 @@
# rke2 controllers
class roles::infra::k8s::rke2 {
if $facts['firstrun'] {
include profiles::defaults
include profiles::firstrun::init
}else{
include profiles::defaults
include profiles::base
}
}