feat: adding rke2

- manage rke2 repos
- add rke2 module (init, params, install, config, service)
- add node_type setting class profiles::rke2::node
- exclude setting ips for cilium interfaces
This commit is contained in:
2025-09-06 23:01:57 +10:00
parent 65fb52da55
commit 888db366a1
8 changed files with 107 additions and 1 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class profiles::dns::base (
$facts['networking']['interfaces'].each | $interface, $data | {
# exclude those without ipv4 address, lo, docker0 and anycast addresses
if $data['ip'] and $interface != 'lo' and $interface != 'docker0' and $interface !~ /^anycast[0-9]$/ {
if $data['ip'] and $interface != 'lo' and $interface != 'docker0' and $interface !~ /^anycast[0-9]$/ and $interface !~ /^cilium_/ {
# use defaults for the primary_interface
if $interface == $primary_interface {
+15
View File
@@ -0,0 +1,15 @@
# manage server/agent nodes
class profiles::rke2::node (
Array[Stdlib::Fqdn] $servers = [],
){
$node_type = $trusted['certname'] in $servers ? {
'true' => 'server',
default => 'agent'
}
class {'rke2':
node_type => $node_type,
}
}