From baea6f9232c6d81f86e43b9950f92aaef0431336 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Thu, 19 Oct 2023 20:12:40 +0200 Subject: [PATCH] Add exclude for yum repo --- manifests/repos.pp | 1 + spec/classes/repos_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/manifests/repos.pp b/manifests/repos.pp index 64218091..110f72c0 100644 --- a/manifests/repos.pp +++ b/manifests/repos.pp @@ -134,6 +134,7 @@ gpgkey => pick($kubernetes_yum_gpgkey,"https://pkgs.k8s.io/core:/stable:/v${minor_version}/rpm/repodata/repomd.xml.key"), enabled => 1, gpgcheck => 1, + exclude => 'kubelet kubeadm kubectl cri-tools kubernetes-cni', } } diff --git a/spec/classes/repos_spec.rb b/spec/classes/repos_spec.rb index 31c0cbba..e69b2227 100644 --- a/spec/classes/repos_spec.rb +++ b/spec/classes/repos_spec.rb @@ -240,6 +240,7 @@ 'enabled' => '1', 'baseurl' => 'https://pkgs.k8s.io/core:/stable:/v1.28/rpm/', 'gpgkey' => 'https://pkgs.k8s.io/core:/stable:/v1.28/rpm/repodata/repomd.xml.key', + 'exclude' => 'kubelet kubeadm kubectl cri-tools kubernetes-cni', ) } end