### ### 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 /var/cache/openafs --fstype=ext4 --name=lv_afscache --vgname=vg_sys --size=4096 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 --gateway $gateway_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 openafs-client openafs-compat openafs-krb5 openafs-authlibs -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-key-rockwell.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-openafs-client.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`" # don't have solution for using UL kernel with SL openafs packges in SL6 #yum -y update kernel #wget -O /tmp/kmod-openafs.rpm http://mirror.msulocal/mirror/aglt2/6/x86_64/kmod-openafs-1.6.1-1.3.2.13_UL1.el6.x86_64.rpm #rpm -i /tmp/kmod-openafs.rpm 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://10.10.128.11/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