Make kub[cw] a special nftables case

This commit is contained in:
Magnus Andersson 2024-05-31 12:57:38 +02:00
parent e87657f209
commit d1a85199c6
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -54,3 +54,11 @@ if is_hash($ssh_authorized_keys) {
# proto => "tcp"
# }
#}
if $::facts['hostname'] =~ /^k8s[wc]/ {
warning('Setting nftables to installed but disabled')
ensure_resource ('class','sunet::nftables::init', { enabled => false })
} else {
warning('Enabling nftables')
ensure_resource ('class','sunet::nftables::init', { })
}