# # DM , 01/2020 - fuer VM mit disk vda # kickstart-file für CentOS-7-x86_64-Minimal-1908.iso + NMSPrime # # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # Use graphical install graphical #text # Run the Setup Agent on first boot firstboot --enable # Network information # network --bootproto=dhcp ### network --bootproto=dhcp --device=ens3 --onboot=off --ipv6=auto --no-activate # # # Root password rootpw toor # System services services --enabled="chronyd" # # Disk & System bootloader configuration %pre # Determine disk name disk=$(fdisk -l | grep "Disk /dev/.d.:" | head -1 | cut -d ' ' -f2 | sed 's/\/dev\///' | sed 's/://') echo "ignoredisk --only-use=$disk" > /tmp/part-include echo "clearpart --all --initlabel --drives=$disk" >> /tmp/part-include echo "zerombr" >> /tmp/part-include echo "autopart --type=plain --nohome" >> /tmp/part-include echo "bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=$disk" >> /tmp/part-include %end %include /tmp/part-include ## ######################## ## Basis System Centos7 %packages @^minimal @core chrony kexec-tools %end # %addon com_redhat_kdump --enable --reserve-mb='auto' %end # # Post - Installation - unser Teil %post --log=/root/ks-post.log # echo "`date +'%d.%m.%Y %H:%M:%S'` start post-install " echo "`date +'%d.%m.%Y %H:%M:%S'` start system-updates und Ergänzungen " yum update -y yum install -y net-tools yum install -y wget yum install -y zip yum install -y unzip yum install -y httpd httpd-tools yum install -y php-common systemctl disable NetworkManager echo "`date +'%d.%m.%Y %H:%M:%S'` get repos fuer nmsprime ... " curl -vsL https://raw.githubusercontent.com/nmsprime/nmsprime/master/INSTALL-REPO.sh | bash # echo "`date +'%d.%m.%Y %H:%M:%S'` installiere Maria-DB Server ... " # install Maria-DB # yum install -y mariadb mariadb-server # # Start Maria-DB - muss für NMSPrime Installation laufen !!! # echo "`date +'%d.%m.%Y %H:%M:%S'` starte Maria-DB Server ... " /usr/libexec/mariadb-prepare-db-dir MariaDB database server /usr/bin/sudo -u mysql /usr/bin/mysqld_safe --basedir=/usr & # echo "`date +'%d.%m.%Y %H:%M:%S'` start yum install nmsprime-* " yum install -y nmsprime-* # # stop Maria-DB Server /usr/bin/kill `cat /var/run/mariadb/mariadb.pid` # echo "`date +'%d.%m.%Y %H:%M:%S'` ende post-install " %end # %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end # # firewall für Webserver freischalten firewall --enabled --port=443:tcp,8080:tcp # # EOF