|
|
|
@@ -27,18 +27,15 @@ class rke2::install (
|
|
|
|
|
before => Service["rke2-${node_type}"],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# preload airgap tarballs (incl. canal CNI) so flannel/calico start from disk, not the mirror VIP that needs flannel to be reachable
|
|
|
|
|
$image_archives = ['rke2-images.linux-amd64.tar.zst', 'rke2-images-canal.linux-amd64.tar.zst']
|
|
|
|
|
$image_archives.each |String $archive_file| {
|
|
|
|
|
archive { "/var/lib/rancher/rke2/agent/images/${archive_file}":
|
|
|
|
|
ensure => present,
|
|
|
|
|
source => "https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/rancher/rke2/releases/download/v${rke2_version}%2B${rke2_release}/${archive_file}",
|
|
|
|
|
require => [
|
|
|
|
|
Package["rke2-${node_type}"],
|
|
|
|
|
File['/var/lib/rancher/rke2/agent/images'],
|
|
|
|
|
],
|
|
|
|
|
before => Service["rke2-${node_type}"],
|
|
|
|
|
}
|
|
|
|
|
# preload the airgap bundle (has the default canal CNI images) so canal starts from disk, not the mirror VIP that needs flannel first
|
|
|
|
|
archive { '/var/lib/rancher/rke2/agent/images/rke2-images.linux-amd64.tar.zst':
|
|
|
|
|
ensure => present,
|
|
|
|
|
source => "${container_archive_source}/v${rke2_version}%2B${rke2_release}/rke2-images.linux-amd64.tar.zst",
|
|
|
|
|
require => [
|
|
|
|
|
Package["rke2-${node_type}"],
|
|
|
|
|
File['/var/lib/rancher/rke2/agent/images'],
|
|
|
|
|
],
|
|
|
|
|
before => Service["rke2-${node_type}"],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# ensure the images cache file exists
|
|
|
|
|