LC_ALL: $JOB_LANGUAGE
SYSTEM_STATUS: 'unknown'
CONFIG_FILE: 'etc/create-vmware-template.ini'
- ROOT_PASSWORD: 'blablub'
- SWAP_SPACE_MB: 512
+ ROOT_PASSWORD: 'uhu-banane'
+ SWAP_SPACE_MB: 1024
COBBLER_DISTRO: 'RHEL-9.2-x86_64'
COBBLER_HOST: ''
COBBLER_HOST_PROD: 'prd-cobbler01.pixelpark.com'
# Do not configure the X Window System
skipx
-# Installation logging level
-logging --level=debug
-
# Reboot after installation
reboot
echo "Used /etc/resolv.conf:"
cat /etc/resolv.conf
+echo
+echo "Linux uname:"
+uname -a
+
+echo
+echo "Linux kernel versions:"
+rpm -qa | grep -i kernel | sort -i
+
+echo
+echo "Devices:"
+echo
+ls -lA /dev/disk/*/
+
#end raw
%end
# Pre installation tasks
%pre-install --interpreter=/bin/bash --log=/var/log/ks-pre-install.log
#raw
+echo
+echo "###########################################################"
+echo "Pre install tasks ..."
+echo
+
echo "[$( date --rfc-3339=seconds )]: Pre installation tasks ..."
+
#end raw
%end
### debug
# set -x
+#raw
+echo
+echo "###########################################################"
+echo "Post install tasks ..."
+echo
+
echo "cobbler profile = $profile_name"
echo
fi
+echo
+echo "------------------"
+echo "Linux kernel versions:"
+rpm -qa | grep -i kernel | sort -i
+
+echo
+echo "------------------"
+echo "LVM:"
+
+echo
+echo "pvs"
+pvs --units m
+
+echo
+echo "vgs"
+vgs --units m
+
+echo
+echo "lvs"
+lvs --units m
+#end raw
### remove unnecessary directory
rm -rf /var/var
# Do not configure the X Window System
skipx
-# Installation logging level
-logging --level=debug
-
# Reboot after installation
reboot
# Pre tasks
%pre --interpreter=/bin/bash --log=/var/log/ks-pre.log
#raw
+
+echo
+echo "###########################################################"
+echo "Pre-all tasks ..."
+echo
echo "[$( date --rfc-3339=seconds )]: Let's launch the missle ..."
echo
if grep '^nameserver' /etc/resolv.conf >/dev/null ; then
echo "Used /etc/resolv.conf:"
cat /etc/resolv.conf
+echo
+echo "Linux uname:"
+uname -a
+
+echo
+echo "Linux kernel versions:"
+rpm -qa | grep -i kernel | sort -i
+
+echo
+echo "Devices:"
+echo
+ls -lA /dev/disk/*/
+
#end raw
%end
# Pre installation tasks
%pre-install --interpreter=/bin/bash --log=/var/log/ks-pre-install.log
#raw
+echo
+echo "###########################################################"
+echo "Pre install tasks ..."
+echo
+
echo "[$( date --rfc-3339=seconds )]: Pre installation tasks ..."
+
#end raw
%end
### debug
# set -x
+#raw
+echo
+echo "###########################################################"
+echo "Post install tasks ..."
+echo
+
echo "cobbler profile = $profile_name"
echo
fi
+echo
+echo "------------------"
+echo "Linux kernel versions:"
+rpm -qa | grep -i kernel | sort -i
+
+echo
+echo "------------------"
+echo "Default kernel in GRUB:"
+grubby --default-index
+grubby --default-title
+grubby --default-kernel
+
+echo
+echo "------------------"
+echo "LVM:"
+
+echo
+echo "pvs"
+pvs --units m
+
+echo
+echo "vgs"
+vgs --units m
+
+echo
+echo "lvs"
+lvs --units m
+#end raw
### remove unnecessary directory
rm -rf /var/var
sshpw --username=inst testtest --plaintext
# Root install-password
-rootpw --iscrypted $6$tPpm.7Bc7.H4aoIC$ItrG9r8VDmMZxK301yGlIhTbv2ZG7cZ33m3WlAyr3NfYvb6O5fKFNtiIBRu/Ystju4lS/siTiiWCGLDI/U31p1
+rootpw --iscrypted ${ROOT_PWD_HASH}
# System authorization information
authselect minimal with-mkhomedir with-pwhistory without-nullok
# Pre installation tasks
%pre-install --interpreter=/bin/bash --log=/var/log/ks-pre-install.log
#raw
-echo "[$( date --rfc-3339=seconds )]: Pre installation tasks ..."
-
echo
-echo "LVM:"
-
+echo "###########################################################"
+echo "Pre install tasks ..."
echo
-echo "pvs"
-pvs --units m
-echo
-echo "vgs"
-vgs --units m
-
-echo
-echo "lvs"
-lvs --units m
+echo "[$( date --rfc-3339=seconds )]: Pre installation tasks ..."
#end raw
%end
### debug
# set -x
+#raw
echo
echo "###########################################################"
echo "Post install tasks ..."
fi
-#raw
echo
+echo "------------------"
echo "Linux kernel versions:"
rpm -qa | grep -i kernel | sort -i
echo
+echo "------------------"
echo "Default kernel in GRUB:"
grubby --default-index
grubby --default-title
grubby --default-kernel
-#end raw
+echo
+echo "------------------"
+echo "LVM:"
+
+echo
+echo "pvs"
+pvs --units m
+
+echo
+echo "vgs"
+vgs --units m
+
+echo
+echo "lvs"
+lvs --units m
+#end raw
### remove unnecessary directory
rm -rf /var/var
{% endif %}
echo
+echo "------------------"
echo "hostname: '$hostname'"
echo "system_name: '$system_name'"
echo "gateway: '$gateway'"