# Centos8 for Privisioning-Installation
######################################################################################
#
-# Standard Pixelpark Installation of CentOS 8 templates
+# Standard Pixelpark Installation of CentOS Stream 8 templates
#
# Firewall configuration
firewall --disabled
# Use network installation
-url --url="https://repo02.pixelpark.com/Linux/yum/centos/8/BaseOS/x86_64/os" --noverifyssl
+url --url="https://repo02.pixelpark.com/Linux/yum/centos/8-stream/BaseOS/x86_64/os" --noverifyssl
sshpw --username=inst testtest --plaintext
# Root install-password
rootpw --iscrypted $6$hrjmntwc$Vt1K1JQghssQ0El1D.uzbEEGNizDT4aQEW/G..HErsvsGL3OEgU1Xyrg3uQ/nE/3ABFuyOM1eQc1RjHMV5oDv1
# System authorization information
-auth --useshadow --passalgo=sha512
+auth --useshadow --enablemd5 --passalgo=sha512
# Use text mode install
text
# System keyboard
skipx
# Installation logging level
logging --level=debug
+# Run the Setup Agent on first boot
+firstboot --disable
# Reboot after installation
reboot
# System timezone
# Partitioning and Disk
# System bootloader configuration
-bootloader --location=mbr --append="net.ifnames=0 biosdevname=0"
+bootloader --location=mbr --append="net.ifnames=0 biosdevname=0" --timeout=3
# Partition clearing information
-clearpart --all --drive=sda
+clearpart --all --initlabel --drive=sda
# Disk partitioning information
part /boot --fstype ext4 --size=512 --ondisk=sda
##########################################
# Repositories
-repo --name=pp-base --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/$releasever/BaseOS/$basearch/os/
-repo --name=pp-appstream --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/$releasever/AppStream/$basearch/os/
-repo --name=pp-extras --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/$releasever/extras/$basearch/os/
-repo --name=pp-powertools --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/$releasever/PowerTools/$basearch/os/
-# repo --name=pp-epel --baseurl=https://repo02.pixelpark.com/Linux/yum/epel/$releasever/Everything/$basearch/os/
-# repo --name=pixelpark --baseurl=https://repo02.pixelpark.com/Linux/yum/pixelpark/$releasever/
-
+repo --name=BaseOS --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/8-stream/BaseOS/$basearch/os/
+repo --name=AppStream --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/8-stream/AppStream/$basearch/os/
+repo --name=extras --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/8-stream/extras/$basearch/os/
+repo --name=PowerTools --baseurl=https://repo02.pixelpark.com/Linux/yum/centos/8-stream/PowerTools/$basearch/os/
+repo --name=epel --baseurl=https://repo02.pixelpark.com/Linux/yum/epel/$releasever/Everything/$basearch/os/
+repo --name=pixelpark --install --baseurl=https://repo02.pixelpark.com/Linux/yum/pixelpark/$releasever/
%packages
@core
bc
bind-utils
curl
-dosfstools
git
iotop
-ksh
mailx
man
mlocate
net-tools
-nfs-utils
psmisc
-python3-policycoreutils
rpm-build
rsync
strace
sysstat
tcpdump
-telnet
+traceroute
tmux
vim
wget
yum-utils
%end
-#######################
-# Packages later:
-# bgconf
-# bgscripts-core
-# colordiff
-# -*firmware
-# p7zip
-# screen
-
%post --interpreter=/usr/bin/bash
-
######################################################################################
# Installation of pixelpark standard applications
######################################################################################
-
### output to console
clear
POST_LOG="/var/log/post-install.log"
exec < /dev/console &> >(tee -a "$POST_LOG")
+# Start yum configuration
+$yum_config_stanza
+# End yum configuration
+
+echo
+echo "Snippet post_install_kernel_options ..."
+$SNIPPET('post_install_kernel_options')
+
+echo
+echo "Snippet post_install_network_config ..."
+$SNIPPET('post_install_network_config')
+
+echo
+echo "Snippet download_config_files ..."
+$SNIPPET('download_config_files')
+
+echo
+echo "Snippet koan_environment ..."
+$SNIPPET('koan_environment')
+
+echo
+echo "Snippet redhat_register ..."
+$SNIPPET('redhat_register')
+
+echo
+echo "Snippet cobbler_register ..."
+$SNIPPET('cobbler_register')
+
+# Enable post-install boot notification
+echo
+echo "Snippet post_anamon ..."
+$SNIPPET('post_anamon')
+
+# Start final steps
+echo
+echo "Snippet autoinstall_done ..."
+$SNIPPET('autoinstall_done')
+
### debug
set -x
echo "ip_address_eth0: '$ip_address_eth0'"
echo "mac_address_eth0: '$mac_address_eth0'"
+# End final steps
+
%end