feat: adding rke2
- add k8s::rke2 role + hieradata - manage rke2 repos
This commit is contained in:
parent
65fb52da55
commit
bfd7ec50db
25
hieradata/roles/infra/k8s/rke2.yaml
Normal file
25
hieradata/roles/infra/k8s/rke2.yaml
Normal 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: {}
|
||||||
10
site/roles/manifests/infra/k8s/rke2.pp
Normal file
10
site/roles/manifests/infra/k8s/rke2.pp
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user