diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2016-09-16 20:59:06 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2016-09-16 20:59:06 +0200 |
commit | cde82ec07f72c988accdd18619f94c9db5fb177a (patch) | |
tree | 5f5905bb79444fe0905193e47c32236a488d2a7e /other/kickstarts/centos5-x86_64-master.cfg | |
parent | 3df750c466fceca80ac7f16694d59c6a8a13ba47 (diff) | |
download | centosauto-cde82ec07f72c988accdd18619f94c9db5fb177a.tar.gz centosauto-cde82ec07f72c988accdd18619f94c9db5fb177a.tar.bz2 |
Diffstat (limited to 'other/kickstarts/centos5-x86_64-master.cfg')
-rw-r--r-- | other/kickstarts/centos5-x86_64-master.cfg | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/other/kickstarts/centos5-x86_64-master.cfg b/other/kickstarts/centos5-x86_64-master.cfg new file mode 100644 index 0000000..8a94138 --- /dev/null +++ b/other/kickstarts/centos5-x86_64-master.cfg @@ -0,0 +1,99 @@ +# text mode (no graphical mode) +text + +# do not configure X +skipx + +# non-interactive command line mode +cmdline + +# install +install + +# installation path +url --url=http://mirror.switch.ch/ftp/mirror/centos/5/os/x86_64 + +# repository +repo --name="Switch CentOS Repo" --baseurl=http://mirror.switch.ch/ftp/mirror/centos/5/os/x86_64 +# by specifying the update Repo the install process will automatically update to the latest version. If you wish to stay at the initial release version, comment the following line. +repo --name="Switch CentOS Repo Update" --baseurl=http://mirror.switch.ch/ftp/mirror/centos/5/updates/x86_64 + +# Language support +lang en_US.UTF-8 + +# keyboard +keyboard us + +# network +network --onboot yes --device eth0 --bootproto dhcp --noipv6 --hostname=centos5-64-master + +# root password (123qwe, change after cloning) +rootpw --iscrypted $6$LhelAf3MiEiKEXoZ$4Ymdrfp0TJRtQf0DtkfRqjFzQddX72yYvRlHYapeDxMhdG.HGWm04XX1YOCTleKqsUio04hwbb6/1O.ea4RhM/ + +# firewall +firewall --enabled +firewall --port=22:tcp + +# auth config +authconfig --enableshadow --passalgo=sha512 + +# SElinux +selinux --enforcing + +# timezone +timezone --utc Europe/Zurich + +# bootloader +bootloader --location=mbr --driveorder=vda --append="crashkernel=auto rhgb quiet" + +# clear the MBR (Master Boot Record) +zerombr + +# the Setup Agent is not started the first time the system boots +firstboot --disable + +# power off after installation +poweroff + +################################################################################ +# LVM partitions + +# do not remove any partition (preserve the gpt label) +clearpart --none + +# creates a partition on the system +part /boot --fstype=ext3 --size=500 +part pv.00 --grow --asprimary --size=1 + +# Increased pesize from 4096 KB to 262144 KB (0.25GB) to allow bigger logvols +# Keep 20% of volgroup reserved for future use +volgroup vg_main --pesize=262144 pv.00 + +# Use default swap size +logvol swap --name=lv_swap --vgname=vg_main --recommended + +# Allocate the rest to / +logvol / --fstype=ext4 --name=lv_root --vgname=vg_main --size=1 --grow + +################################################################################ + +%pre +parted -s /dev/vda mklabel msdos + +%packages –nobase +@core +vim-minimal + +################################################################################ + +%post +# cleanup the installation +yum clean all +# create default ssh keys +ssh-keygen -q -t rsa -N "" -f /root/.ssh/id_rsa +# create default authorized_keys file +cp -p -f --context=system_u:object_r:ssh_home_t:s0 /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys +chmod 600 /root/.ssh/authorized_keys +%end + +################################################################################ |