]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Adding Centos-7.8-aarch64 to cobbler 584/head
authorAdam Kraitman <akraitma@redhat.com>
Tue, 29 Sep 2020 14:25:34 +0000 (17:25 +0300)
committerAdam Kraitman <akraitma@redhat.com>
Wed, 7 Oct 2020 17:52:17 +0000 (20:52 +0300)
Signed-off-by: Adam Kraitman <akraitma@redhat.com>
cobbler.yml
roles/cobbler_profile/defaults/main.yml
roles/cobbler_profile/tasks/import_distro_iso.yml

index cfd8ebfde32cff2722790d07ba496f09a831f472..df4eebb49a1b907f198c6653bb6be0043e87375b 100644 (file)
@@ -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'] }
index 567a27c5a6bf1d3adc88c4f92eef53004cf2f5b5..f6bf86379a7a9bbfcd47a1d23e21150dfe99e61c 100644 (file)
@@ -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
index 76a1bd6d53a755d179e92415c3034d5d891a77d8..53b06b42db42531c0d438bd82ff3284906e725ae 100644 (file)
   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 }}"