- 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
16 lines
374 B
Puppet
16 lines
374 B
Puppet
# config rke2
|
|
class rke2::config (
|
|
Enum['server', 'agent'] $node_type = $rke2::node_type,
|
|
Stdlib::Absolutepath $config_file = $rke2::config_file,
|
|
Hash $config_hash = $rke2::config_hash,
|
|
){
|
|
|
|
file { $config_file:
|
|
ensure => file,
|
|
content => $config_hash.to_yaml,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
}
|
|
}
|