From: Adam Kraitman Date: Tue, 29 Sep 2020 14:25:34 +0000 (+0300) Subject: Adding Centos-7.8-aarch64 to cobbler X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=28da9a3c207acba888367f78a6a194775e5f6742;p=ceph-cm-ansible.git Adding Centos-7.8-aarch64 to cobbler Signed-off-by: Adam Kraitman --- diff --git a/cobbler.yml b/cobbler.yml index cfd8ebf..df4eebb 100644 --- a/cobbler.yml +++ b/cobbler.yml @@ -31,6 +31,7 @@ - { role: cobbler_profile, distro_name: CentOS-7.5-x86_64, tags: ['centos7.5'] } - { role: cobbler_profile, distro_name: CentOS-7.6-x86_64, tags: ['centos7.6'] } - { role: cobbler_profile, distro_name: CentOS-7.7-x86_64, tags: ['centos7.7'] } + - { role: cobbler_profile, distro_name: CentOS-7.8-arm, tags: ['centos7.8-arm'] } - { role: cobbler_profile, distro_name: CentOS-8.0-x86_64, tags: ['centos8.0'] } - { role: cobbler_profile, distro_name: CentOS-8.1-x86_64, tags: ['centos8.1'] } - { role: cobbler_profile, distro_name: CentOS-8.1-aarch64, tags: ['centos8.1-aarch64'] } diff --git a/roles/cobbler_profile/defaults/main.yml b/roles/cobbler_profile/defaults/main.yml index 567a27c..f6bf863 100644 --- a/roles/cobbler_profile/defaults/main.yml +++ b/roles/cobbler_profile/defaults/main.yml @@ -82,6 +82,11 @@ distros: iso: http://ftp.linux.ncsu.edu/pub/CentOS/7.7.1908/isos/x86_64/CentOS-7-x86_64-DVD-1908.iso sha256: 9bba3da2876cb9fcf6c28fb636bcbd01832fe6d84cd7445fa58e44e569b3b4fe kickstart: cephlab_rhel.ks + "CentOS-7.8-arm": + iso: http://centos.mirror.garr.it/centos-altarch/7.8.2003/isos/aarch64/CentOS-7-aarch64-Everything-2003.iso + sha256: 386e85a0d49d457252fcdbfa23d2082fc3f132f8405622831b07fd27a6071c7e + kickstart: cephlab_rhel.ks + arch: arm "CentOS-8.0-x86_64": iso: http://mirror.linux.duke.edu/pub/centos/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso sha256: ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8 diff --git a/roles/cobbler_profile/tasks/import_distro_iso.yml b/roles/cobbler_profile/tasks/import_distro_iso.yml index 76a1bd6..53b06b4 100644 --- a/roles/cobbler_profile/tasks/import_distro_iso.yml +++ b/roles/cobbler_profile/tasks/import_distro_iso.yml @@ -42,6 +42,19 @@ register: import when: mount is defined and mount is changed +# In the next two step we need to +# rename the distro and profile only when the arch is arm +# because cobbler is adding the arm word twice to the name instead of once +- name: Rename the distro if the arch is arm + command: cobbler distro rename --name={{ distro_name }}-arm --newname={{ distro_name }} + when: mount is defined and mount is changed and + arch == "arm" + +- name: Rename the profile if the arch is arm + command: cobbler profile rename --name={{ distro_name }}-arm --newname={{ distro_name }} + when: mount is defined and mount is changed and + arch == "arm" + - name: Unmount ISO mount: name: "{{ iso_mount }}"