From 579b05c024b8f922c46087e1bf46be94ce521381 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Mon, 23 Sep 2024 10:28:47 +0200 Subject: [PATCH] Remove old repos, to avoid collisions --- manifests/repo.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/manifests/repo.pp b/manifests/repo.pp index 91c8573..7e13098 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -14,6 +14,9 @@ $core_url = "https://pkgs.k8s.io/core:/stable:/v${major_version}/deb" $crio_url = "https://pkgs.k8s.io/addons:/cri-o:/stable:/v${major_version}/deb" + apt::source { 'libcontainers:stable': + ensure => absent, + } apt::source { 'k8s-core': location => $core_url, repos => '/', @@ -25,6 +28,9 @@ } if $manage_container_manager and $container_manager == 'crio' { + apt::source { 'libcontainers:stable:cri-o': + ensure => absent, + } apt::source { 'k8s-crio': location => $crio_url, repos => '/', @@ -46,6 +52,9 @@ $core_url = "https://pkgs.k8s.io/core:/stable:/v${major_version}/rpm" $crio_url = "https://pkgs.k8s.io/addons:/cri-o:/stable:/v${major_version}/rpm" + yumrepo { 'libcontainers:stable': + ensure => absent, + } yumrepo { 'k8s-core': descr => 'Stable releases of Kubernetes', baseurl => $core_url, @@ -56,6 +65,9 @@ if $manage_container_manager { case $container_manager { 'crio': { + yumrepo { 'libcontainers:stable:cri-o': + ensure => absent, + } yumrepo { 'k8s-crio': descr => 'Stable releases of CRI-o', baseurl => $crio_url,