From c9e8493bace8888129dd432bdd976a0c3aa322e2 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 6 Oct 2019 04:22:09 +0200 Subject: CentOS8 and testing with ipecompute* servers --- templates/base-centos7 | 1 + templates/base-centos8 | 1 + templates/base-fedora | 1 + templates/hdd | 5 ----- templates/packages-centos7 | 1 + templates/packages-centos8 | 2 ++ templates/packages-fedora | 2 ++ templates/post-arcmsr | 12 ++++++++++++ templates/post-ipecompute1 | 1 + templates/raid0 | 10 ---------- templates/raid1 | 11 ----------- templates/storage-hdd | 5 +++++ templates/storage-raid0 | 10 ++++++++++ templates/storage-raid1 | 11 +++++++++++ 14 files changed, 47 insertions(+), 26 deletions(-) create mode 100644 templates/base-centos7 create mode 100644 templates/base-centos8 create mode 100644 templates/base-fedora delete mode 100644 templates/hdd create mode 100644 templates/packages-centos7 create mode 100644 templates/packages-centos8 create mode 100644 templates/packages-fedora create mode 100644 templates/post-arcmsr create mode 120000 templates/post-ipecompute1 delete mode 100644 templates/raid0 delete mode 100644 templates/raid1 create mode 100644 templates/storage-hdd create mode 100644 templates/storage-raid0 create mode 100644 templates/storage-raid1 (limited to 'templates') diff --git a/templates/base-centos7 b/templates/base-centos7 new file mode 100644 index 0000000..2838fb1 --- /dev/null +++ b/templates/base-centos7 @@ -0,0 +1 @@ +cdrom diff --git a/templates/base-centos8 b/templates/base-centos8 new file mode 100644 index 0000000..0639731 --- /dev/null +++ b/templates/base-centos8 @@ -0,0 +1 @@ +url --url="http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos/8.0.1905/BaseOS/x86_64/os/" diff --git a/templates/base-fedora b/templates/base-fedora new file mode 100644 index 0000000..2838fb1 --- /dev/null +++ b/templates/base-fedora @@ -0,0 +1 @@ +cdrom diff --git a/templates/hdd b/templates/hdd deleted file mode 100644 index 531581f..0000000 --- a/templates/hdd +++ /dev/null @@ -1,5 +0,0 @@ -part biosboot --ondisk=@DISK1@ --asprimary --size=1 --fstype=biosboot -part /boot --ondisk=@DISK1@ --asprimary --size @BOOTSIZE@ --fstype=ext4 -part swap --ondisk=@DISK1@ --asprimary --fstype=swap --recommended -part lvm.01 --ondisk=@DISK1@ --asprimary --size @SIZE@ --grow -volgroup sysvg lvm.01 diff --git a/templates/packages-centos7 b/templates/packages-centos7 new file mode 100644 index 0000000..fdc793e --- /dev/null +++ b/templates/packages-centos7 @@ -0,0 +1 @@ +python diff --git a/templates/packages-centos8 b/templates/packages-centos8 new file mode 100644 index 0000000..1b2dd8b --- /dev/null +++ b/templates/packages-centos8 @@ -0,0 +1,2 @@ +# python is required for ansible (and is not installed on Fedora) +python3 diff --git a/templates/packages-fedora b/templates/packages-fedora new file mode 100644 index 0000000..9aaeded --- /dev/null +++ b/templates/packages-fedora @@ -0,0 +1,2 @@ +python3 +python3-dnf \ No newline at end of file diff --git a/templates/post-arcmsr b/templates/post-arcmsr new file mode 100644 index 0000000..be04566 --- /dev/null +++ b/templates/post-arcmsr @@ -0,0 +1,12 @@ +yum -y install https://www.elrepo.org/elrepo-release-8.0-2.el8.elrepo.noarch.rpm +yum -y install kmod-arcmsr + +# But there is already a newer kernel. +# weak-modules does not work automatically, add-kernel does not help +# by default dracut copies module for old kernel (good), but does not load it. -I copies module, but depmod is not executed. +kver=$(rpm -qv kernel | cut -d '-' -f 2-) +/sbin/weak-modules --add-kernel $kver +cp -r /lib/modules/4.18.0-80.el8.x86_64/extra/ /lib/modules/$kver +depmod -a +cp /boot/initramfs-$kver.img /boot/initramfs-$kver.img.orig +dracut -f /boot/initramfs-$kver.img -I /lib/modules/$kver/extra/arcmsr/arcmsr.ko --force-drivers arcmsr $kver diff --git a/templates/post-ipecompute1 b/templates/post-ipecompute1 new file mode 120000 index 0000000..11df7d6 --- /dev/null +++ b/templates/post-ipecompute1 @@ -0,0 +1 @@ +post-arcmsr \ No newline at end of file diff --git a/templates/raid0 b/templates/raid0 deleted file mode 100644 index f612fa2..0000000 --- a/templates/raid0 +++ /dev/null @@ -1,10 +0,0 @@ -part biosboot --ondisk=@DISK1@ --asprimary --size=1 --fstype=biosboot -part biosboot --ondisk=@DISK2@ --asprimary --size=1 --fstype=biosboot -part raid.01 --ondisk=@DISK1@ --asprimary --size @BOOTSIZE@ -part raid.02 --ondisk=@DISK2@ --asprimary --size @BOOTSIZE@ -part swap --ondisk=@DISK1@ --asprimary --fstype=swap --recommended -part swap --ondisk=@DISK2@ --asprimary --fstype=swap --recommended -part pv.01 --ondisk=@DISK1@ --asprimary --size @SIZE@ --grow -part pv.02 --ondisk=@DISK2@ --asprimary --size @SIZE@ --grow -raid /boot --level=RAID1 --device=md0 raid.01 raid.02 --fstype=ext4 -volgroup sysvg pv.01 pv.02 diff --git a/templates/raid1 b/templates/raid1 deleted file mode 100644 index bcdb1c7..0000000 --- a/templates/raid1 +++ /dev/null @@ -1,11 +0,0 @@ -part biosboot --ondisk=@DISK1@ --asprimary --size=1 --fstype=biosboot -part biosboot --ondisk=@DISK2@ --asprimary --size=1 --fstype=biosboot -part raid.01 --ondisk=@DISK1@ --asprimary --size @BOOTSIZE@ -part raid.02 --ondisk=@DISK2@ --asprimary --size @BOOTSIZE@ -part swap --ondisk=@DISK1@ --asprimary --fstype=swap --recommended -part swap --ondisk=@DISK2@ --asprimary --fstype=swap --recommended -part raid.03 --ondisk=@DISK1@ --asprimary --size @SIZE@ --grow -part raid.04 --ondisk=@DISK2@ --asprimary --size @SIZE@ --grow -raid /boot --level=RAID1 --device=md0 raid.01 raid.02 --fstype=ext4 -raid pv.01 --level=@RAID@ --device=md1 raid.03 raid.04 -volgroup sysvg pv.01 diff --git a/templates/storage-hdd b/templates/storage-hdd new file mode 100644 index 0000000..c8db327 --- /dev/null +++ b/templates/storage-hdd @@ -0,0 +1,5 @@ +part biosboot --ondisk=@DISK1@ --asprimary --size=1 --fstype=biosboot +part /boot --ondisk=@DISK1@ --asprimary --size @BOOTSIZE@ --fstype=ext4 +part swap --ondisk=@DISK1@ --asprimary --fstype=swap --recommended +part pv.01 --ondisk=@DISK1@ --asprimary --size @SIZE@ --grow +volgroup sysvg pv.01 diff --git a/templates/storage-raid0 b/templates/storage-raid0 new file mode 100644 index 0000000..15734ff --- /dev/null +++ b/templates/storage-raid0 @@ -0,0 +1,10 @@ +part biosboot --ondisk=@DISK1@ --asprimary --size=1 --fstype=biosboot +part biosboot --ondisk=@DISK2@ --asprimary --size=1 --fstype=biosboot +part raid.01 --ondisk=@DISK1@ --asprimary --size @BOOTSIZE@ +part raid.02 --ondisk=@DISK2@ --asprimary --size @BOOTSIZE@ +part swap --ondisk=@DISK1@ --asprimary --fstype=swap --recommended +part swap --ondisk=@DISK2@ --asprimary --fstype=swap --recommended +part pv.01 --ondisk=@DISK1@ --asprimary --size @SIZE@ --grow +part pv.02 --ondisk=@DISK2@ --asprimary --size @SIZE@ --grow +raid /boot --level=RAID1 --device=md0 raid.01 raid.02 --fstype=ext4 +volgroup sysvg pv.01 pv.02 diff --git a/templates/storage-raid1 b/templates/storage-raid1 new file mode 100644 index 0000000..6d7e6e6 --- /dev/null +++ b/templates/storage-raid1 @@ -0,0 +1,11 @@ +part biosboot --ondisk=@DISK1@ --asprimary --size=1 --fstype=biosboot +part biosboot --ondisk=@DISK2@ --asprimary --size=1 --fstype=biosboot +part raid.01 --ondisk=@DISK1@ --asprimary --size @BOOTSIZE@ +part raid.02 --ondisk=@DISK2@ --asprimary --size @BOOTSIZE@ +part swap --ondisk=@DISK1@ --asprimary --fstype=swap --recommended +part swap --ondisk=@DISK2@ --asprimary --fstype=swap --recommended +part raid.03 --ondisk=@DISK1@ --asprimary --size @SIZE@ --grow +part raid.04 --ondisk=@DISK2@ --asprimary --size @SIZE@ --grow +raid /boot --level=RAID1 --device=md0 raid.01 raid.02 --fstype=ext4 +raid pv.01 --level=@RAID@ --device=md1 raid.03 raid.04 +volgroup sysvg pv.01 -- cgit v1.2.3