#version=DEVEL # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media #cdrom # Installation from url (specify the url path) url --url="https://vault.centos.org/centos/7/os/x86_64/" #url --url="http://mirror.centos.org/centos/7/os/x86_64/" #url --url="http://ftp.cc.uoc.gr/mirrors/linux/centos/7.8.2003/os/x86_64" #repo --name=epel --baseurl="https://dl.fedoraproject.org/pub/epel/7/x86_64/" --install --noverifyssl #repo --name=Protonyx --baseurl="http://repo.combox.gr/comBOX/centos/7/x86_64/" --install # Use graphical install graphical # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=sda # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=static --device=eth0 --gateway=172.22.1.36 --ip=172.22.1.1 --nameserver=172.22.1.36 --netmask=255.255.255.0 --noipv6 --activate network --hostname=localhost.localhost # SELinux configuration selinux --disabled # Firewall configuration firewall --disabled # Root password rootpw --iscrypted $6$.YUD6upUP3v9v7cI$9Ci1KR0zLC/LQ2fEZHcYvKFlWKJ9xux.3mC6jVuPpfyhYY65u2QsIkcBRL3jwOpdCsI3mvVzZRpDVUO3GZXeB0 # System services services --disabled="chronyd" # System timezone timezone Europe/Athens --isUtc --nontp # System bootloader configuration bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda # Clear the Master Boot Record zerombr # Partition clearing information #clearpart --none --initlabel clearpart --all #--drives=sda # Disk partitioning information part /boot --fstype="ext4" --ondisk=sda --size=500 part /boot/efi --fstype="efi" --ondisk=sda --size=200 --fsoptions="umask=0077,shortname=winnt" part swap --fstype="swap" --ondisk=sda --size=2048 part / --fstype="ext4" --ondisk=sda --grow # Installing packages %packages @^minimal @core kexec-tools vim wget #epel-release %end %addon com_redhat_kdump --enable --reserve-mb='auto' %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 %post --log=/root/ks-post.log #Fix centos mirrorlist domain not working sed -i 's|\#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* sed -i 's/mirrorlist/\#mirrorlist/g' /etc/yum.repos.d/CentOS-* #rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 #yum -y update #echo "ip addr sh:" #ip addr sh #IPMASK=`ip addr sh dev eth0|grep -w inet|awk '{ print$2 }'` #echo "IPMASK=${IPMASK}" #IFS=/ read -a PARTS<<<"$IPMASK" #IPADDR="${PARTS[0]}" #PREFIX="${PARTS[1]}" #echo "ip ro:" #ip ro #GATEWAY=`ip ro |grep default|awk '{ print $3 }'` #echo "GATEWAY=${GATEWAY}" #echo "sed output:" #sed wget -P /root/ "http://repo.combox.gr/kickstart/prerequirementsBeforeYumInstallCombox-1.0.0-1.x86_64.rpm" #yum -y install /root/prerequirementsBeforeYumInstallCombox-1.0.0-1.x86_64.rpm #yum -y install combox-server #echo "vll.conf now:" #cat /opt/manager/running/input/common/vll.conf %end # Reboot after installation reboot