Skip to content

Commit

Permalink
Add exclude for yum repo
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Oct 19, 2023
1 parent 7475088 commit baea6f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/repos.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
}

Expand Down
1 change: 1 addition & 0 deletions spec/classes/repos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baea6f9

Please sign in to comment.