Skip to content

Commit 271ed98

Browse files
committed
fix: use .tar.gz extension for RKE2 airgap tarballs from Pulp
Pulp downloads and stores RKE2 airgap image tarballs as .tar.gz regardless of the original .tar.zst extension in the source URL. Update the NFS config download tasks to use .tar.gz when fetching from the local Pulp mirror. Signed-off-by: John Lockman <jlockman3@gmail.com>
1 parent dfcb3bc commit 271ed98

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

provision/roles/k8s_config/tasks/create_compute_rke2_config_nfs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@
185185
# RKE2 airgap system images (core + selected CNI)
186186
- name: Download RKE2 airgap image tarballs to compute NFS share
187187
ansible.builtin.get_url:
188-
url: "{{ offline_tarball_path }}/{{ item }}/{{ item }}.tar.zst"
189-
dest: "{{ compute_k8s_client_mount_path }}/rke2/images/{{ item }}.tar.zst"
188+
url: "{{ offline_tarball_path }}/{{ item }}/{{ item }}.tar.gz"
189+
dest: "{{ compute_k8s_client_mount_path }}/rke2/images/{{ item }}.tar.gz"
190190
mode: "{{ file_mode }}"
191191
validate_certs: false
192192
loop:

provision/roles/k8s_config/tasks/create_rke2_config_nfs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@
276276
# on the nodes; the cloud-init templates copy these from the NFS share.
277277
- name: Download RKE2 airgap image tarballs to NFS share
278278
ansible.builtin.get_url:
279-
url: "{{ offline_tarball_path }}/{{ item }}/{{ item }}.tar.zst"
280-
dest: "{{ k8s_client_mount_path }}/rke2/images/{{ item }}.tar.zst"
279+
url: "{{ offline_tarball_path }}/{{ item }}/{{ item }}.tar.gz"
280+
dest: "{{ k8s_client_mount_path }}/rke2/images/{{ item }}.tar.gz"
281281
mode: "{{ file_mode }}"
282282
validate_certs: false
283283
loop:

0 commit comments

Comments
 (0)