- manage rke2 repos - add rke2 module (init, params, install, config, service) - split roles::infra::k8s::node -> control/compute roles - moved common k8s config into k8s.yaml - add bootstrap_node, manage server and token fields in rke2 config - manage install of helm - manage node attributes (from puppet facts) - manage frr exclusions for service/cluster network Reviewed-on: #394
16 lines
284 B
Ruby
16 lines
284 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'facter/util/helm'
|
|
|
|
Facter.add(:helm_repos) do
|
|
confine kernel: 'Linux'
|
|
confine enc_role: [
|
|
'roles::infra::k8s::control',
|
|
'roles::infra::k8s::compute'
|
|
]
|
|
|
|
setcode do
|
|
Facter::Util::Helm.get_helm_repos('/usr/bin/helm')
|
|
end
|
|
end
|