From 445ed1898414ab434334881fd4d77347883df597 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Wed, 3 May 2023 16:26:30 -0700 Subject: [PATCH 1/2] cobbler_profile download_iso.yml: use checksum parameter sha256sum was deprecated, and disappeared by ansible-core 2.10. checksum: "sha256:" is the same. Signed-off-by: Dan Mick --- roles/cobbler_profile/tasks/download_iso.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/cobbler_profile/tasks/download_iso.yml b/roles/cobbler_profile/tasks/download_iso.yml index c81d7ffa..66ef6921 100644 --- a/roles/cobbler_profile/tasks/download_iso.yml +++ b/roles/cobbler_profile/tasks/download_iso.yml @@ -7,6 +7,6 @@ get_url: url={{ distro.iso }} dest={{ iso_path }} - sha256sum={{ distro.sha256 }} + checksum=sha256:{{ distro.sha256 }} when: profile is defined and profile.stdout == '' register: download From f587105d4132f468d8a3cc50189527d9ef4ac52a Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Wed, 3 May 2023 16:28:08 -0700 Subject: [PATCH 2/2] Add CentOS-8.5 (to build centos8.stream on top of newer release) centos8.stream is an odd build because of bugs; we don't use CentOS 8.5 directly anymore, but it's now the base of the stream image. Signed-off-by: Dan Mick --- cobbler.yml | 1 + roles/cobbler_profile/defaults/main.yml | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cobbler.yml b/cobbler.yml index 3c187ef1..91e64404 100644 --- a/cobbler.yml +++ b/cobbler.yml @@ -45,6 +45,7 @@ - { role: cobbler_profile, distro_name: CentOS-8.2-x86_64, tags: ['centos8.2'] } - { role: cobbler_profile, distro_name: CentOS-8.3-x86_64, tags: ['centos8.3'] } - { role: cobbler_profile, distro_name: CentOS-8.4-x86_64, tags: ['centos8.4'] } + - { role: cobbler_profile, distro_name: CentOS-8.5-x86_64, tags: ['centos8.5'] } - { role: cobbler_profile, distro_name: CentOS-8.stream-x86_64, tags: ['centos8.stream'] } - { role: cobbler_profile, distro_name: CentOS-9.stream-x86_64, tags: ['centos9.stream'] } - { role: cobbler_profile, distro_name: Ubuntu-12.04-server-x86_64, tags: ['ubuntu-precise'] } diff --git a/roles/cobbler_profile/defaults/main.yml b/roles/cobbler_profile/defaults/main.yml index 28cae4c1..64e94835 100644 --- a/roles/cobbler_profile/defaults/main.yml +++ b/roles/cobbler_profile/defaults/main.yml @@ -1,7 +1,7 @@ --- distros: - # Distros with empty iso values will be skipped. These dicts will be - # updated with same-named items in an 'extra_distros' var, which can be + # Distros with empty iso values will be skipped. These dicts will be + # updated with same-named items in an 'extra_distros' var, which can be # set in the secrets repo. "inktank-rescue": iso: "" @@ -135,6 +135,10 @@ distros: iso: http://packages.oit.ncsu.edu/centos/8.4.2105/isos/x86_64/CentOS-8.4.2105-x86_64-dvd1.iso sha256: 0394ecfa994db75efc1413207d2e5ac67af4f6685b3b896e2837c682221fd6b2 kickstart: cephlab_rhel.ks + "CentOS-8.5-x86_64": + iso: https://mirror.cs.pitt.edu/centos-vault/8.5.2111/isos/x86_64/CentOS-8.5.2111-x86_64-dvd1.iso + sha256: 3b795863001461d4f670b0dedd02d25296b6d64683faceb8f2b60c53ac5ebb3e + kickstart: cephlab_rhel.ks "Ubuntu-12.04-server-x86_64": iso: "http://releases.ubuntu.com/12.04/ubuntu-12.04.5-server-amd64.iso" sha256: af224223de99e2a730b67d7785b657f549be0d63221188e105445f75fb8305c9