diff --git a/modules/rke2/manifests/config.pp b/modules/rke2/manifests/config.pp index a1240cf..31a4cf4 100644 --- a/modules/rke2/manifests/config.pp +++ b/modules/rke2/manifests/config.pp @@ -16,9 +16,6 @@ class rke2::config ( Optional[String[1]] $csi_ceph_poolname = $rke2::csi_ceph_poolname, ){ - # if agent, add token. what other fields should i add? - # how can I add a tls secret using kubectl to add ephemeral certs. - # if its not the bootstrap node, add join path to config if $node_type == 'server' { if $trusted['certname'] != $bootstrap_node { @@ -27,7 +24,9 @@ class rke2::config ( token => $node_token, } ) }else{ - $config = $config_hash + $config = merge($config_hash, { + token => $node_token, + } ) } } elsif $node_type == 'agent' { $config = merge($config_hash, {