Difference between revisions of "Typical RHEL5 Config File"
From DFWLPiki
(Created page with "Category:Linux <nowiki> #Generated by Kickstart Configurator #platform=x86, AMD64, or Intel EM64T #RHEL5 Key #key yaaaaaaayyyyyyyyyy #System language lang en_US #Lang...") |
(No difference)
|
Latest revision as of 16:50, 29 December 2016
#Generated by Kickstart Configurator #platform=x86, AMD64, or Intel EM64T #RHEL5 Key #key yaaaaaaayyyyyyyyyy #System language lang en_US #Language modules to install langsupport en_US --default=en_US #System keyboard keyboard us #System mouse mouse #Sytem timezone timezone America/Chicago #Root password rootpw --iscrypted yaaaaaaaaaaaaayyyyyyyyyyyy #Reboot after installation reboot #Use text mode install text #Install OS instead of upgrade install #Use NFS installation Media nfs --server=10.32.3.21 --dir=/opt/data/linux/centos/5/5.8/x86_64/os # nfs --server=10.32.3.21 --dir=/opt/data/RedHat/RHEL5/RHEL5-U7/x86_64/os #System bootloader configuration bootloader --location=mbr --append vga=791 #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart --all --initlabel #Disk partitioning information part /boot --fstype ext3 --size 512 --asprimary ## Create Logical Volumes part pv.01 --size=1 --grow --ondisk=vda #part pv.02 --size=1 --grow --ondisk=sdb volgroup vg00 pv.01 #volgroup vg01 pv.02 logvol / --vgname=vg00 --size=2048 --name=lv_root logvol swap --vgname=vg00 --size=2048 --name=lv_swap logvol /tmp --vgname=vg00 --size=1024 --name=lv_tmp logvol /usr --vgname=vg00 --size=6128 --name=lv_usr logvol /var --vgname=vg00 --size=4096 --name=lv_var logvol /opt --vgname=vg00 --size=2048 --name=lv_opt logvol /home --vgname=vg00 --size=4096 --name=lv_home #System authorization infomation auth --useshadow --enablemd5 #Network information network --bootproto=static --ip=10.32.0.51 --netmask=255.255.255.0 --gateway=10.32.0.1 --nameserver=10.1.1.45 --device=eth0 --hostname d0lpvf051 #Firewall configuration firewall --disabled selinux --disabled #Do not configure XWindows skipx #Package install information %packages --resolvedeps @ development-libs @ development-tools @ admin-tools @ text-internet @ system-tools @ legacy-software-development @ legacy-software-support @ base-x @ server-cfg lvm2 e2fsprogs xinetd net-snmp sendmail-cf # Post Commands for Production %post # Setup resolv.conf for Production cat << EOF > /etc/resolv.conf domain production.me nameserver 10.1.1.45 nameserver 10.3.1.16 search production.me EOF # setup NTP for Production cat << EOF > /etc/ntp.conf restrict default nomodify notrap noquery restrict 127.0.0.1 restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap server 0.us.pool.ntp.org server 1.us.pool.ntp.org server 2.us.pool.ntp.org driftfile /var/lib/ntp/drift broadcastdelay 0.008 EOF chkconfig ntpd on ntpdate -v -b 0.us.pool.ntp.org chkconfig snmpd on chkconfig smartd off chkconfig kudzu off chkconfig libvirtd off chkconfig rhn-virtualization-host off chkconfig xendomains off chkconfig mdmonitor off chkconfig xend off chkconfig rhnsd on chkconfig avahi-daemon off chkconfig avahi-dnsconfd off chkconfig bluetooth off chkconfig firstboot off chkconfig isdn off chkconfig hidd off chkconfig ip6tables off chkconfig pcscd off chkconfig iptables off chkconfig yum-updatesd on #echo "define(\`SMART_HOST',\`smtp.production.local')" >> /etc/mail/sendmail.mc #m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf; /etc/init.d/sendmail restart # Setup /etc/snmp/snmpd.conf for Production cat << EOF > /etc/snmp/snmpd.conf syslocation "Production" syscontact "Jonathan Horne" rocommunity yaaaaaaaaaaay EOF echo "alias sshr='ssh -R -X 52698:127.0.0.1:52698'" >> /etc/bashrc EOF sed -i 's/^#compress/compress/' /etc/logrotate.conf EOF #echo "relayhost = [smtp.production.local]" >> /etc/postfix/main.cf #EOF echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers EOF sed -i 's/rhgb quiet//g' /boot/grub/grub.conf EOF sed -i 's/^path/#path/' /etc/kdump.conf echo net 10.32.3.21:/opt/data/crashdump >> /etc/kdump.conf EOF %end