-
Notifications
You must be signed in to change notification settings - Fork 70
/
centos6-nocps-raid1.cfg
105 lines (85 loc) · 2.74 KB
/
centos6-nocps-raid1.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
# WARNING: the disklayout used in this kickstart script gives an error on the Scientific Linux 6 alpha version. ("new lv is too large to fit in free space")
# The same disklayout works fine in Centos 5.5 though, so I'm submitting this script as a test case nevertheless
# (if you would like to test it with Centos 5.5, you can use this script, but remove the "%end" lines)
#
#
# Kickstart script generated by our commercial server provisioning software ( http://www.noc-ps.com )
#
# Settings used:
#
# Disk layout: Soft. RAID1 (2 disks sda sdb)
# Packages: NOC-PS default (installs local resolving nameserver + SSH)
# IP/Netmask/Gateway: 10.0.0.100 / 255.255.255.0 / 10.0.0.1
# Root password: centostest
# Regular user name: charlie
# Regular user password: centostest
#
#
# If you change the network settings: please leave the nameserver at 127.0.0.1
# and specify installation source by IP instead of hostname.
#
# After installation BIND is used as local resolving nameserver, so no dependencies
# exists on other systems
#
#System language
lang en_US
#Language modules to install
#langsupport en_US
#System keyboard
keyboard us
#System mouse
#mouse none
#System timezone
timezone Europe/Amsterdam
#Root password
rootpw --iscrypted "$1$tEc7zWwN$03s7xjno7IE6mndUQy1E71"
user --name "charlie" --iscrypted --password "$1$Z2lV1KN3$Nt0/U9cp74UJJjMNUpn9H/"
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
#url --url http://131.225.110.41/linux/scientific/6rolling/x86_64/os/
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
#zerombr yes
zerombr
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
# Disks for 250 MB boot partition
part raid.01 --size=250 --asprimary --ondisk=sda
part raid.02 --size=250 --asprimary --ondisk=sdb
# Disks for LVM partition
part raid.11 --size=1 --grow --ondisk=sda
part raid.12 --size=1 --grow --ondisk=sdb
# RAID settings
raid /boot --fstype ext2 --device md0 --level=RAID1 raid.01 raid.02
raid pv.01 --device md1 --level=RAID1 raid.11 raid.12
# LVM configuration
volgroup vg pv.01
logvol / --vgname=vg --size=1 --grow --fstype ext3 --name=root
logvol /tmp --vgname=vg --size=1024 --fstype ext3 --name=tmp
logvol swap --vgname=vg --recommended --name=swap
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=static --ip=10.0.0.100 --netmask=255.255.255.0 --gateway=10.0.0.1 --nameserver=127.0.0.1 --device=eth0 --hostname=centos6test.noc-ps.com
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx
#%packages --resolvedeps
%packages
openssh-server
caching-nameserver
%end
%pre
%end
%post
chkconfig named on
%end