Difference between revisions of "Cluster der kan alt/Kickstart fil til installation af noder"

From Teknologisk videncenter
Jump to: navigation, search
(Kickstart fil)
m
Line 2: Line 2:
 
*For at lave kickstart filer kan i ''håndlave'' dem i en editor eller anvende '''system-config-kickstart'''
 
*For at lave kickstart filer kan i ''håndlave'' dem i en editor eller anvende '''system-config-kickstart'''
  
 +
'''Filenplacering'''
 +
<source lang=cli>
 +
/var/www/ks.cfg
 +
</source>
 
==Kickstart fil==
 
==Kickstart fil==
 
<source lang=cli>
 
<source lang=cli>

Revision as of 08:53, 25 April 2012

  • Der skal anvendes en http: server således at noderne kan hente kickstart filen. Anvend for ekempel lighttpd
  • For at lave kickstart filer kan i håndlave dem i en editor eller anvende system-config-kickstart

Filenplacering

/var/www/ks.cfg

Kickstart fil

#Generated by Kickstart Configurator
#platform=x86

#System language
lang da_DK
#Language modules to install
langsupport da_DK
#System keyboard
keyboard dk
#System mouse
mouse
#System timezone
timezone Europe/Copenhagen
#Root password
rootpw --iscrypted $1$AkUb1qdI$vMYeX3C37RX0pRjBppX7W.
#Initial user
user cluster --fullname "cluster admin" --iscrypted --password $1$9Za4QvWX$AXgp$
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://10.0.0.1:3142/ubuntu/
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part / --fstype ext4 --size 1024
part /boot --fstype ext4 --size 512
part /home --fstype ext4 --size 1024
part /var --fstype ext4 --size 3072
part /tmp --fstype ext4 --size 3072
part /usr --fstype ext4 --size 5120
part swap --size 1024
#System authorization infomation
auth  --useshadow  --enablemd5  --enablenis --nisdomain dka.local --nisserver 1$
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx
#Package install information
%packages
openssh-server
nmap
ssh
screen
bmon
iperf
bonnie++
lmbench
lm-sensors
snmpd
snmp
build-essential
gcc
openssh-client
nfs-common
mpich2
dsh
portmap
nis
%pre
#!/bin/bash
echo "Pre-installation"
%post --nochroot
echo "portmap : 10.0.0.1" >> /etc/hosts.allow
echo "+::::::" >> /etc/passwd
echo "+:::" >> /etc/group
echo "+::::::::" >> /etc/shadow
echo "ypserver 10.0.0.1" >> /etc/yp.conf
/etc/init.d/nis restart
mkdir /mnt/temp
mount -o nolock 10.0.0.1:/script/ /mnt/temp
open -s -w -- /mnt/temp/runme
umount /mnt/temp

Sådan ser vores gældende Kickstart fil ud