HEX
Server: nginx/1.29.3
System: Linux 11979.bigscoots-wpo.com 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User: nginx (1068)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_open,proc_close,popen,show_source,cmd# Do not modify this line # 1684243876
Upload Files
File: //bigscoots/dedicated/kickstart/centos7-local.ks.cfg
\install
text
# url --url http://mirror.steadfast.net/centos/7/os/x86_64
url --url "http://10.0.0.1/pxeboot/pub/centos/7/"
lang en_US
keyboard us

logging --level debug
#interactive

network --device=eth0 --bootproto=dhcp --noipv6
network --device=eth1 --no-activate --onboot=no --noipv6

timezone America/Chicago
authconfig --enableshadow --passalgo=sha512
rootpw --iscrypted ¯\_(ツ)_/¯ 
skipx

firewall --disable
selinux --disabled

bootloader --location=mbr

clearpart --all --initlabel --disklabel gpt

part biosboot --size 1 --ondrive sda
part biosboot --size 1 --ondrive sdb

part raid.11 --size 1024 --ondrive sda
part raid.21 --size 1024 --ondrive sdb

part raid.12 --size 4096 --ondrive sda
part raid.22 --size 4096 --ondrive sdb

part raid.13 --size 1 --grow --ondrive sda
part raid.23 --size 1 --grow --ondrive sdb

raid /boot --fstype ext2 --device md0 --level 1 raid.11 raid.21
raid swap --fstype swap --device md1 --level 1 raid.12 raid.22
raid / --fstype ext4 --device md2 --level 1 raid.13 raid.23

part /backup --fstype ext4 --size 1 --grow --ondrive sdc

eula --agreed
reboot

%pre
%end

%packages --nobase
@core --nodefaults
-aic94xx-*
-alsa-*
-btrfs-progs*
-biosdevname
-iprutils
-ivtv*
-iwl*firmware
-kexec-tools
-NetworkManager*
-plymouth*
mailx
screen
%end

%post
mkdir /root/.ssh
#curl -o /root/.ssh/authorized_keys http://<repo_site>/etc/authorized_keys
#curl -o /etc/chrony.conf http://<repo_site>/etc/chrony.conf
postconf -e inet_protocols=ipv4
postfix reload
/bin/systemctl restart postfix.service

while read -r hname newip stack; do

        /usr/bin/curl http://10.0.0.1/pxeboot/pub/networkconf.sh | bash -s -- "$newip"

        systemctl restart network.service
        sleep 10

        /usr/bin/hostnamectl set-hostname $hname

        if ! ping -c 1 google.com &> /dev/null; then
                sleep 30
        fi

        if [[ $stack == cpanel ]]; then
                stackurl=https://raw.githubusercontent.com/jcatello/bigscoots/master/bsi1-dedi.sh
        fi

        if [[ $stack == cpanel_shared ]]; then
                stackurl=https://raw.githubusercontent.com/jcatello/bigscoots/master/bsi1-dedi.sh
                shared=1
        fi

        if [[ $stack == wpo ]]; then
                stackurl=https://raw.githubusercontent.com/jcatello/bigscoots/master/bsi-nginx-dedi.sh
        fi

  echo "/usr/bin/hostnamectl set-hostname $hname
  sed -i '/hostnamectl/d' /etc/rc.local /etc/rc.d/rc.local" >> /etc/rc.local
  chmod +x /etc/rc.local /etc/rc.d/rc.local

  echo "" | mail -s "PXE Dedi install completed on STATIC IP $newip - $hname - Part 2" [email protected]
done <<< "$(curl -s "http://10.0.0.1/pxeboot/pub/q4kpITbNxO4o79153AHVTuxG3DbC2xMq" | tr '\n' ' ')"

%end