-
-
Save mooperd/5e4c199ead97a10cfcb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# | |
# Example KickStart file for SLC6 installations | |
# | |
# Important note: this file is intended as an example only, and users are | |
# expected to tailor it to their needs. In particular, users should: | |
# - review the partition table | |
# - set an encrypted root password | |
# - for 32-bit installations, replace the occurences of "x86_64" by "i386" | |
# | |
# To upload the Kickstart file to the AIMS installation service, run: | |
# | |
# /usr/bin/aims2client addhost --hostname <hostname> --kickstart kickstart-example.ks --kopts "text network ks ksdevice=bootif latefcload" --pxe --name slc6X_x86_64 | |
# | |
############################################################################## | |
text | |
# Install or upgrade? | |
install | |
# installation path | |
url --url=http://mirror.bytemark.co.uk/centos/6.5/os/x86_64/ | |
# Language support | |
lang en_US | |
# Keyboard | |
keyboard us | |
# Network | |
network --bootproto=dhcp --device=eth0 --onboot yes | |
# Root password - change to a real password (use "grub-md5-crypt" to get the crypted version) | |
rootpw --iscrypted $1$XXP4X1$xXOtwoihQm0cvCt/8Bfai. # root password is nss | |
# Firewall openings for SSH and AFS | |
firewall --service=ssh --port=7001:udp | |
# Authconfig | |
authconfig --useshadow --enablemd5 --enablekrb5 | |
# SElinux | |
selinux --disabled | |
# Timezone | |
timezone --utc Europe/London | |
# Bootloader | |
zerombr | |
bootloader --location=mbr --driveorder=sda | |
clearpart --linux --drives=sda | |
part / --size=5000 --ondisk=sda --asprimary --grow | |
#part /boot --size=1024 --ondisk vda | |
#part pv.01 --size=1 --ondisk vda --grow | |
#volgroup vg1 pv.01 | |
#logvol / --vgname=vg1 --size=10000 --name=root | |
#logvol swap --vgname=vg1 --recommended --name=swap --fstype=swap | |
#ignoredisk --only-use=vda | |
# XWindows configuration information | |
# xconfig --startxonboot | |
# Installation logging level | |
logging --level=info | |
# Reboot after installation? | |
reboot | |
############################################################################## | |
# | |
# packages part of the KickStart configuration file | |
# | |
############################################################################## | |
%packages | |
# | |
# Use package groups from "Software Development Workstation (CERN Recommended Setup)" | |
# as defined in /afs/cern.ch/project/linux/cern/slc6X/i386/build/product.img/installclasses/slc.py | |
# | |
@ base | |
@ core | |
%post | |
# | |
# This section describes all the post-Anaconda steps to fine-tune the installation | |
# | |
# redirect the output to the log file | |
exec >/root/ks-post-anaconda.log 2>&1 | |
# show the output on the 7th console | |
tail -f /root/ks-post-anaconda.log >/dev/tty7 & | |
# changing to VT 7 that we can see what's going on.... | |
/usr/bin/chvt 7 | |
# | |
# Set the correct time | |
# | |
# | |
# Update the RPMs | |
# | |
#curl ipa/CentOS-Base.repo > /etc/yum.repos.d/CentOS-Base.repo | |
#/usr/bin/yum update -y --skip-broken | |
#curl ipa/CentOS-Base.repo > /etc/yum.repos.d/CentOS-Base.repo | |
# yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release-1-2.el6.noarch.rpm | |
# yum install lustre | |
# IPA config | |
# Done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment