### ### Kickstart file for test xrootd pool node installs on Dell pe1950 ### # install from http install url --url $url ### ### disk setup ### # remove everything from install disk # note that by limiting this (--initlabel) to just the install drive, # unlabeled disks will no be labeled. anaconda will make a popup # asking to approve labels (gpt, atleast for large parts) clearpart --initlabel --all --drives=$disk # partitions partition /boot --fstype=ext4 --size=200 --ondisk=$disk partition pv.01 --grow --size=1 --ondisk=$disk # volume group volgroup vg_sys pv.01 --pesize=4096 # logical volumes logvol / --fstype=ext4 --name=lv_root --vgname=vg_sys --size=15360 logvol /tmp --fstype=ext4 --name=lv_tmp --vgname=vg_sys --size=10240 logvol /var --fstype=ext4 --name=lv_var --vgname=vg_sys --size=10240 logvol /home --fstype=ext4 --name=lv_home --vgname=vg_sys --size=202800 logvol swap --name=lv_swap --vgname=vg_sys --size=4096 ### ### network setup ### network --device $dev_priv --onboot yes --bootproto static --noipv6 --ip $ip_priv --netmask $netmask_priv --nameserver $nameserver_priv --hostname $hostname_pub network --device $dev_pub --onboot yes --bootproto static --noipv6 --ip $ip_pub --netmask $netmask_pub --gateway $gateway_pub --hostname $hostname_pub ### ### Misc commands ### lang en_US.UTF-8 keyboard us # SHA512 rootpw --iscrypted $rootpw #firewall --service=ssh firewall --trust=$dev_priv authconfig --enableshadow --passalgo=sha512 timezone --utc America/Detroit bootloader --location=mbr --append="crashkernel=auto" selinux --disabled skipx text # local repo for use during packages section #$repo_local # services to disable or enable. make sure to have no spaces in lists services --disable NetworkManager,auditd,cups,smartd,avahi-daemon --enable ntpd # nonpriv user setup just for install time, root account is also available... # also need to boot with option "sshd=1" #sshpw --username=installer INST5577 --plaintext # reboot when done reboot ### ### RPM packages ### %packages @base @client-mgmt-tools @console-internet @core @directory-client @hardware-monitoring @large-systems @misc-sl @performance @perl-runtime xorg-x11-xauth -NetworkManager ### ### Pre scripts ### %pre #!/bin/sh mkdir /tmp/anaconda-pre ls -l /dev/disk/by-path > /tmp/anaconda-pre/disks-by-path-pre.out %end #include str($tmpl_incl_dir)+"/"+"pre-check-install-disk-maxsize.tmpl" ### ### Post scripts ### %post --nochroot cp -r /tmp/anaconda-pre /mnt/sysimage/root %end #include str($tmpl_incl_dir)+"/"+"post-sshd-config-ten-ten.tmpl" #include str($tmpl_incl_dir)+"/"+"post-ssh-keys.tmpl" #include str($tmpl_incl_dir)+"/"+"post-grub-custom.tmpl" #include str($tmpl_incl_dir)+"/"+"post-yum-custom.tmpl" #include str($tmpl_incl_dir)+"/"+"post-static-routes.tmpl" #include str($tmpl_incl_dir)+"/"+"post-omsa-repo.tmpl" %post # paren for redirect of ouput to logfile... ( echo "post script running `date`" # install the base OMSA packages yum -y install srvadmin-omacore srvadmin-storage # try to set time ntpdate $ntpserver_priv # CFEngine Keys? # Salt Keys? # Change pxe boot action to localboot wget --no-check-certificate -O - -o /dev/null https://$rocks_fe_pxe/install/sbin/public/setPxeboot.cgi # paren for redirect of ouput to logfile... ) 2>&1 | tee /root/anaconda_post-ssh-keys.log %end %post # for debugging #sleep 3456 sleep 7 %end