diff --git a/manifests/install/container_runtime.pp b/manifests/install/container_runtime.pp index 48dda32..ff28af1 100644 --- a/manifests/install/container_runtime.pp +++ b/manifests/install/container_runtime.pp @@ -33,6 +33,10 @@ target => '/usr/sbin/runc', replace => false, } + } elsif fact('os.family') == 'Suse' { + file { '/usr/libexec/crio': + ensure => directory, + } } $pkg = pick($crio_package, 'cri-o') diff --git a/manifests/node/kubelet.pp b/manifests/node/kubelet.pp index 2d05278..04dc3fa 100644 --- a/manifests/node/kubelet.pp +++ b/manifests/node/kubelet.pp @@ -262,6 +262,17 @@ enable => true, } + if fact('os.family') == 'Suse' { + # Remove pre-packaged kubeadmin-built kubelet configuration on SUSE + file { + default: + ensure => absent; + + '/usr/lib/systemd/system/kubelet.service':; + '/usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf':; + } + } + Class['k8s::install::container_runtime'] -> Service['kubelet'] Package <| title == 'containernetworking-plugins' |> -> Service['kubelet'] diff --git a/metadata.json b/metadata.json index 659faac..453c908 100644 --- a/metadata.json +++ b/metadata.json @@ -59,6 +59,12 @@ "20.10", "22.04" ] + }, + { + "operatingsystem": "openSUSE", + "operatingsystemrelease": [ + "15.6" + ] } ], "requirements": [