text install url --url http://mirror.ox.ac.uk/sites/mirror.centos.org/6/os/x86_64/ shutdown lang en_GB.UTF-8 # langsupport --default en_GB.UTF-8 en_GB.UTF-8 en_US.UTF-8 keyboard uk network --device eth0 --bootproto dhcp firewall --enabled --port=22:tcp timezone --utc Europe/London rootpw --iscrypted #hashed password here# bootloader --location=mbr --driveorder=hda --append="rhgb quiet" # Do not configure the X Window System skipx zerombr clearpart --all part /boot --fstype ext3 --size=250 part pv.01 --size=100 --grow volgroup volg0 pv.01 logvol / --vgname=volg0 --size=5000 --name=root --fstype ext4 logvol /var --vgname=volg0 --size=9000 --name=var --fstype ext4 logvol /opt --vgname=volg0 --size=50000 --name=opt --fstype ext4 logvol swap --vgname=volg0 --size=2000 --name=swap --fstype swap %packages @core @base %post # Fix up IPV6 DNS behaviour echo "options single-request-reopen" >> /etc/resolv.conf # Add getty on hvc0 for Xen guests sed -i 's!^ACTIVE_CONSOLES=\(.*\)!ACTIVE_CONSOLES="\1 /dev/hvc0"!' /etc/sysconfig/init echo hvc0 >> /etc/securetty # Add repos chvt 3 cd /etc/yum.repos.d wget http://repoman.domain/local/sysops/repos/dell-omsa-repository.repo wget http://repoman.domain/local/sysops/repos/epel-testing.repo wget http://repoman.domain/local/sysops/repos/epel.repo wget http://repoman.domain/local/sysops/repos/foreman-plugins.repo wget http://repoman.domain/local/sysops/repos/foreman.repo wget http://repoman.domain/local/sysops/repos/local.repo wget http://repoman.domain/local/sysops/repos/puppetlabs.repo cd /etc/pki/rpm-gpg wget http://repoman.domain/local/sysops/repos/RPM-GPG-KEY-puppetlabs yum -y update yum -y install nss-pam-ldapd nscd pam_krb5 yum -y install puppet lgtoclnt chvt 1
Friday, 5 December 2014
Kickstart file - Installing Centos 6
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment