# Kickstart file for test dCache pool node installs on Dell R710 # install from http install #url --url http://mirror.msulocal/mirror/scientific/6.3/x86_64/os url --url $base.url # disk setup # clear sda on vm client #clearpart --initlabel --all --drives=/dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0 #clearpart --initlabel --all --drives=$node.disk #ignoredisk --disk= # partitions #partition /boot --fstype=ext4 --size=200 --ondisk=/dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0 #partition pv.01 --grow --size=1 --ondisk=/dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0 partition /boot --fstype=ext4 --size=200 --ondisk=$node.disk partition pv.01 --grow --size=1 --ondisk=$node.disk volgroup vg_sys pv.01 --pesize=4096 #logvol / --fstype=ext4 --name=lv_root --vgname=vg_sys --size=20480 #logvol /tmp --fstype=ext4 --name=lv_tmp --vgname=vg_sys --size=15360 #logvol /var --fstype=ext4 --name=lv_var --vgname=vg_sys --size=15360 logvol / --fstype=ext4 --name=lv_root --vgname=vg_sys --size=8192 logvol /var/cache/openafs --fstype=ext4 --name=lv_afscache --vgname=vg_sys --size=4096 logvol swap --name=lv_swap --vgname=vg_sys --size=1024 lang en_US.UTF-8 keyboard us #network --device eth0 --onboot yes --bootproto static --noipv6 --ip 10.10.128.40 --netmask 255.255.240.0 --gateway 10.10.128.1 --nameserver 10.10.128.8 network --device eth0 --onboot yes --bootproto static --noipv6 --ip $node.ip_priv --netmask $base.netmask_priv --gateway $base.gateway_priv --nameserver $base.nameserver_priv # SHA512 #rootpw --iscrypted $6$G0Green$HYkspUsxwH6bBhU87cxojUKNYE8SFhayIAE/sFkkc9MZ7bHij7ul.B5LotqJkwfgysuxdndPqDP20vDZoIy3j1 rootpw --iscrypted $node.rootpw firewall --service=ssh authconfig --enableshadow --passalgo=sha512 timezone --utc America/Detroit bootloader --location=mbr --append="crashkernel=auto" selinux --disabled skipx text # local repo #repo --name="AGLT2 Repo 6/x86_64" --baseurl=http://mirror.msulocal/mirror/aglt2/6/x86_64 $base.repo_local # services. make sure to have no spaces in lists services --disable auditd,cups,smartd,avahi-daemon --enable ntpd # sshd setup just for install time sshpw --username=installer INST5577 --plaintext reboot %packages @base @client-mgmt-tools @console-internet @core @directory-client @hardware-monitoring @large-systems @misc-sl @performance @perl-runtime xorg-x11-xauth cfengine-community %pre #!/bin/sh mkdir /tmp/anaconda-pre ls -l /dev/disk/by-path > /tmp/anaconda-pre/disks-by-path-pre.out %end %pre #!/bin/sh # verify that install target disk is sane # size check? # error message? # sleep forever, user prompt? # exit? %end %post --nochroot cp -r /tmp/anaconda-pre /mnt/sysimage/root %end #include "incl/post-sshd-config-ten-ten.tmpl" #include "incl/post-ssh-key-rockwell.tmpl" #include "incl/post-grub-custom.tmpl" #include "incl/post-yum-custom.tmpl" %post # paren for redirect of ouput to logfile... ( echo "post script running `date`" # try to set time ntpdate $base.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 dbugin #sleep 3600 %end