--- /dev/null
+######################################################################################
+# OracleLinux 7 for Privisioning-Installation
+######################################################################################
+#
+# Standard Pixelpark Installation of OracleLinux 7 templates
+#
+
+# Firewall configuration
+firewall --disabled
+
+# Install OS instead of upgrade
+install
+
+# Use network installation
+url --url="https://cobbler.pixelpark.com/cobbler/ks_mirror/Oracle-Linux-7.8-x86_64/" --noverifyssl
+
+# Root install-password
+rootpw --iscrypted ${ROOT_PWD_HASH}
+# System authorization information
+auth --useshadow --passalgo=sha512
+
+# Use text mode install
+text
+
+# System keyboard
+keyboard de
+
+# System language
+lang en_US
+
+# SELinux configuration
+selinux --permissiv
+
+# Do not configure the X Window System
+skipx
+
+# Installation logging level
+logging --level=debug
+
+# Reboot after installation
+reboot
+
+# System timezone
+timezone Europe/Berlin
+
+###########################################
+# Partitioning and Disk
+
+# Partition clearing information
+# clearpart --all --drive=sda
+clearpart --all --initlabel
+
+# System bootloader configuration
+bootloader --append="net.ifnames=0 biosdevname=0" --location=mbr
+
+# Disk partitioning information
+part /boot --fstype ext4 --size=512 --ondisk=sda
+part swap --size=${SWAP_SIZE_MB} --ondisk=sda
+part pv.01 --size=1 --grow --ondisk=sda
+volgroup vgroot pv.01
+logvol /home --vgname=vgroot --name=home --size=4096
+logvol / --vgname=vgroot --name=root --size=10240
+logvol /var --vgname=vgroot --name=var --size=1 --grow
+
+##########################################
+# Repositories
+
+repo --name=pp-oel-latest --baseurl=https://repo01.pixelpark.com/Linux/yum/OracleLinux/OL7/ol7_latest/
+repo --name=pp-oel-optional-latest --baseurl=https://repo01.pixelpark.com/Linux/yum/OracleLinux/OL7/ol7_optional_latest/
+
+##########################################
+# Packages
+
+%packages
+@base
+bc
+bind-utils
+curl
+dosfstools
+git
+iotop
+ksh
+mailx
+man
+mlocate
+psmisc
+rsync
+strace
+sysstat
+tcpdump
+telnet
+tmux
+vim
+wget
+yum-utils
+-mysql-community*
+-*uek*
+%end
+
+#######################
+# Packages later:
+# colordiff
+# p7zip
+# screen
+
+##########################################
+# Post installation tasks in chroot env
+
+%post --interpreter=/usr/bin/bash
+
+### output to console
+mkdir -p "/var/log/anaconda"
+clear
+POST_LOG="/var/log/anaconda/post-install.log"
+exec < /dev/console &> >(tee -a "$POST_LOG")
+
+######################################################################################
+# Installation of pixelpark standard applications
+######################################################################################
+
+
+### debug
+# set -x
+
+echo "cobbler profile = $profile_name"
+
+echo
+echo "IP interfaces"
+ip link show
+
+echo
+echo "IP addresses"
+ip address show
+
+echo
+echo "IPv4 routes"
+ip route list
+
+echo
+echo "IPv6 routes"
+ip -6 route list
+
+echo
+echo "/etc/resolv.conf"
+cat /etc/resolv.conf
+
+
+### remove unnecessary directory
+rm -rf /var/var
+
+export hostname="$hostname"
+export system_name="$system_name"
+export gateway="$gateway"
+export mgmt_interface="eth0"
+export ip_address_eth0="$ip_address_eth0"
+export mac_address_eth0="$mac_address_eth0"
+export system_status="${SYSTEM_STATUS}"
+export ws_rel_filesdir="${WS_REL_FILESDIR}"
+
+echo
+echo "hostname: '$hostname'"
+echo "system_name: '$system_name'"
+echo "gateway: '$gateway'"
+echo "Management interface: '${mgmt_interface}'"
+echo "ip_address_eth0: '$ip_address_eth0'"
+echo "mac_address_eth0: '$mac_address_eth0'"
+echo "System status: '${system_status}'"
+
+#set $basic_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.001.basics.sh"
+echo
+echo "Using snippet $basic_snippet"
+$SNIPPET($basic_snippet)
+
+#set $authkeys_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.010.authkeys.sh"
+echo
+echo "Using snippet $authkeys_snippet"
+$SNIPPET($authkeys_snippet)
+
+#set $network_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.040.network.sh"
+echo
+echo "Using snippet $network_snippet"
+$SNIPPET($network_snippet)
+
+#set $tweak_systemd_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.060.tweak_systemd.sh"
+echo
+echo "Using snippet $tweak_systemd_snippet"
+$SNIPPET($tweak_systemd_snippet)
+
+#set $tweak_grub_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.070.tweak_grub.sh"
+echo
+echo "Using snippet $tweak_grub_snippet"
+$SNIPPET($tweak_grub_snippet)
+
+#set $clear_repos_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.100.clear_repos.sh"
+echo
+echo "Using snippet $clear_repos_snippet"
+$SNIPPET($clear_repos_snippet)
+
+## #set $get_repos_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.170.repos_oel7.sh"
+## echo
+## echo "Using snippet $get_repos_snippet"
+## $SNIPPET($get_repos_snippet)
+
+#set $init_repos_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.200.init-repos.sh"
+echo
+echo "Using snippet $init_repos_snippet"
+$SNIPPET($init_repos_snippet)
+
+## #set $bashrc_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.205.bashrc-el7.sh"
+## echo
+## echo "Using snippet $bashrc_snippet"
+## $SNIPPET($bashrc_snippet)
+
+#set $vimrc_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.225.vimrc-el7.sh"
+echo
+echo "Using snippet $vimrc_snippet"
+$SNIPPET($vimrc_snippet)
+
+## #set $pkgs_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.240.pkgs-el7.sh"
+## echo
+## echo "Using snippet $pkgs_snippet"
+## $SNIPPET($pkgs_snippet)
+
+#set $create_motd_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.300.create-motd.sh"
+echo
+echo "Using snippet $create_motd_snippet"
+$SNIPPET($create_motd_snippet)
+
+#set $root_ssh_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.320.root-ssh-login.sh"
+echo
+echo "Using snippet $root_ssh_snippet"
+$SNIPPET($root_ssh_snippet)
+
+## #set $legato_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.350.legato.sh"
+## echo
+## echo "Using snippet $legato_snippet"
+## $SNIPPET($legato_snippet)
+
+## #set $chrony_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.400.chrony.sh"
+## echo
+## echo "Using snippet $chrony_snippet"
+## $SNIPPET($chrony_snippet)
+
+## #set $puppet_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.450.puppet.sh"
+## echo
+## echo "Using snippet $puppet_snippet"
+## $SNIPPET($puppet_snippet)
+
+## #set $postfix_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.470.postfix.sh"
+## echo
+## echo "Using snippet $postfix_snippet"
+## $SNIPPET($postfix_snippet)
+
+## #set $logrotate_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.500.logrotate.sh"
+## echo
+## echo "Using snippet $logrotate_snippet"
+## $SNIPPET($logrotate_snippet)
+
+## ###########################
+## Seems to be finished
+
+#set $finish_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.999.finish.sh"
+echo
+echo "Using snippet $finish_snippet"
+$SNIPPET($finish_snippet)
+
+%end
--- /dev/null
+######################################################################################
+# OracleLinux 7 for Privisioning-Installation
+######################################################################################
+#
+# Standard Pixelpark Installation of OracleLinux 7 templates
+#
+
+# Firewall configuration
+firewall --disabled
+
+# Use network installation
+url --url="https://cobbler.pixelpark.com/cobbler/ks_mirror/Oracle-Linux-7.8-x86_64/" --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
+
+# Use text mode install
+text
+
+# System keyboard
+keyboard de
+
+# System language
+lang en_US
+
+# SELinux configuration
+selinux --permissiv
+
+# Do not configure the X Window System
+skipx
+
+# Installation logging level
+logging --level=debug
+
+# Reboot after installation
+reboot
+
+# System timezone
+timezone Europe/Berlin
+
+###########################################
+# Partitioning and Disk
+
+# System bootloader configuration
+bootloader --location=mbr --append="net.ifnames=0 biosdevname=0"
+
+# Partition clearing information
+clearpart --all --drive=sda
+
+# Disk partitioning information
+part /boot --fstype ext4 --size=512 --ondisk=sda
+part swap --size=512 --ondisk=sda
+part pv.01 --size=1 --grow --ondisk=sda
+volgroup vgroot pv.01
+logvol /home --vgname=vgroot --name=home --size=4096
+logvol / --vgname=vgroot --name=root --size=10240
+logvol /var --vgname=vgroot --name=var --size=1 --grow
+
+##########################################
+# Repositories
+
+repo --name=pp-oel-latest --baseurl=https://repo01.pixelpark.com/Linux/yum/OracleLinux/OL7/ol7_latest/
+repo --name=pp-oel-optional-latest --baseurl=https://repo01.pixelpark.com/Linux/yum/OracleLinux/OL7/ol7_optional_latest/
+
+##########################################
+# Packages
+
+%packages
+@base
+bc
+bind-utils
+curl
+dosfstools
+git
+iotop
+ksh
+mailx
+man
+mlocate
+psmisc
+rsync
+strace
+sysstat
+tcpdump
+telnet
+tmux
+vim
+wget
+yum-utils
+-mysql-community*
+-*uek*
+%end
+
+#######################
+# Packages later:
+# colordiff
+# 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")
+
+### debug
+
+set -x
+echo "cobbler profile = $profile_name"
+
+echo
+echo "IP interfaces"
+ip link show
+
+echo
+echo "IP addresses"
+ip address show
+
+echo
+echo "IPv4 routes"
+ip route list
+
+echo
+echo "IPv6 routes"
+ip -6 route list
+
+
+### remove unnecessary directory
+rm -rf /var/var
+
+export hostname="$hostname"
+export system_name="$system_name"
+export gateway="$gateway"
+export ip_address_eth0="$ip_address_eth0"
+export mac_address_eth0="$mac_address_eth0"
+
+echo "hostname: '$hostname'"
+echo "system_name: '$system_name'"
+echo "gateway: '$gateway'"
+echo "ip_address_eth0: '$ip_address_eth0'"
+echo "mac_address_eth0: '$mac_address_eth0'"
+
+%end