Skip to content

Commit

Permalink
Remove old repos, to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
ananace committed Sep 23, 2024
1 parent d7713e7 commit 579b05c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 => '/',
Expand All @@ -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 => '/',
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 579b05c

Please sign in to comment.