summaryrefslogtreecommitdiffstats
path: root/ipe.ks
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:22:09 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:22:09 +0200
commitc9e8493bace8888129dd432bdd976a0c3aa322e2 (patch)
tree1a49e4c3b478b19a30f397cac887a254426d2a6c /ipe.ks
parentf03a04b8036b85ba452ff195bc3fddfc71ba5cb3 (diff)
downloadkickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.tar.gz
kickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.tar.bz2
kickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.tar.xz
kickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.zip
CentOS8 and testing with ipecompute* servers
Diffstat (limited to 'ipe.ks')
-rw-r--r--ipe.ks41
1 files changed, 29 insertions, 12 deletions
diff --git a/ipe.ks b/ipe.ks
index a0ae85f..475755b 100644
--- a/ipe.ks
+++ b/ipe.ks
@@ -1,11 +1,12 @@
#version=DEVEL
+@DISTRIB_BASE_CONFIG@
+@NODE_BASE_CONFIG@
+@ND_BASE_CONFIG@
+
# System authorization information
auth --enableshadow --passalgo=sha512
-# Use CDROM installation media
-cdrom
-
# Use graphical install (graphical is enforce by vnc requested at kernel args)
#text
graphical
@@ -26,7 +27,7 @@ network --hostname=@FQDN@
# Partition clearing information
-clearpart --all --drives=@SYSDISKS@
+clearpart --all --initlabel --drives=@SYSDISKS@
zerombr
# System bootloader configuration
@@ -35,10 +36,13 @@ bootloader --location=mbr --driveorder=@SYSDISKS@ --boot-drive=@BOOTDISK@ --app
#autopart --type=lvm
#reqpart --add-boot
+# rpm & iso are supported here
+@SKIP_DRIVERDISK@driverdisk --source=http://ufo.kit.edu/ands/kickstart/@DISTRIBUTION@/drivers/@DRIVERDISK@
@STORAGE_CONFIG@
+
logvol / --vgname=sysvg --size=@SIZE@ --name=lv_root --fstype=ext4
-@SKIP_HOME@logvol /home --vgname=sysvg --size=@HOME_SIZE@ --name=lv_home --fstype=ext4 --grow
+@SKIP_HOME@logvol /home --vgname=sysvg --size=@HOME_SIZE@ --name=lv_home --fstype=ext4 --grow
# Root password (KaaS)
@@ -63,14 +67,13 @@ poweroff
%packages
-@CENTOS@@^minimal
+@CENTOS7@@^minimal
@core
+@DISTRIB_PACKAGE_CONFIG@
+@NODE_PACKAGE_CONFIG@
+@ND_PACKAGE_CONFIG@
chrony
curl
-
-# Python2 required for ansible (and is not installed on Fedora)
-python
-@FEDORA@python-dnf
%end
%anaconda
@@ -97,22 +100,33 @@ if [ -b /dev/@DISK1@ ]; then
for name in /dev/@DISK1@?*; do
echo "Removing md superblock on $name"
mdadm --misc --zero-superblock $name
- dd if=/dev/zero of=$name bs=512 seek=$(( $(blockdev --getsz $name) - 1024 )) count=1024
+ dd if=/dev/zero of=$name bs=4096 count=1024
+ dd if=/dev/zero of=$name bs=4096 seek=$(( $(blockdev --getsz $name) - 1024 )) count=1024
done
+ dd if=/dev/zero of=/dev/@DISK1@ bs=4096 count=1024
+ #parted /dev/@DISK1@ --script -- mklabel gpt
fi
if [ -b /dev/@DISK2@ ]; then
for name in /dev/@DISK2@?*; do
echo "Removing md superblock on $name"
mdadm --misc --zero-superblock $name
- dd if=/dev/zero of=$name bs=512 seek=$(( $(blockdev --getsz $name) - 1024 )) count=1024
+ dd if=/dev/zero of=$name bs=4096 count=1024
+ dd if=/dev/zero of=$name bs=4096 seek=$(( $(blockdev --getsz $name) - 1024 )) count=1024
done
+ dd if=/dev/zero of=/dev/@DISK2@ bs=4096 count=1024
+ #parted /dev/@DISK2@ --script -- mklabel gpt
fi
+@DISTRIB_PRE_CONFIG@
+@NODE_PRE_CONFIG@
+@ND_PRE_CONFIG@
%end
%post --log=/var/log/ks02.log
yum install -y unzip
+@CENTOS8@alternatives --set python /usr/bin/python3
+
mkdir /root/.ssh
chmod 0700 /root/.ssh
curl http://ufo.kit.edu/ands/kickstart/authorized_keys -o /root/.ssh/authorized_keys
@@ -135,4 +149,7 @@ PREFIX=@CIDR@
#PREFEX1=
EOF
+@DISTRIB_POST_CONFIG@
+@NODE_POST_CONFIG@
+@ND_POST_CONFIG@
%end