-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcos7gen_noipa.ks
93 lines (82 loc) · 3.12 KB
/
cos7gen_noipa.ks
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
#version=RHEL7
# cos7gen_noipa.ks
# WARNING: DOES NOT INCLUDE IPA INITIALIZATION
# WARNING: DOES NOT INCLUDE BRU INITIALIZATION
# ____ _ ___ ____ _____ ____
# / ___|___ _ __ | |_ / _ \/ ___| |___ |___ \
# | | / _ \ '_ \| __| | | \___ \ / / __) |
# | |__| __/ | | | |_| |_| |___) | / /_ / __/
# \____\___|_| |_|\__|\___/|____/ /_/(_)_____|
#
#
# Kickstart file for CentOS 7 physical regular to big sizes. 64 bits.
# The OS (/) has 100 GB reserved; swap space is determined automatically.
# 750 MB for the /boot
# The rest is for /export. LVM is used.
# These are typically single-purpose back-end servers or workstations, with
# disks no larger # than 500 GB.
# (For larger disks we prefer to have a /export2 separate partition).
# No RAID considered here.
# The installation resources are on a local NFS resource (vega).
# 04dec2014/davidr - PARASOL LAB @ TAMU
# 22jan2016/davidr - Revisions for CentOS 7.2.1115
# NOTE: Possible interruptions:
# Disk name change from sda to vda (virtual environments)
# Network device is no longer eth0, or even em1... crazy.
# This may fail on multi-card systems!!!! The first one reponding
# gets the rights...
# Refer to the %pre section at the end to see how the /ksincludes is mounted.
#####################
# Commands section:
#####################
%include /ksincludes/icos7basic.ks
%include /ksincludes/icos7partitioning_regular.ks
#####################
# Packages section:
#####################
%packages --ignoremissing
%include /ksincludes/icos7pkgmanifest_base.ks
%include /ksincludes/icos7pkgmanifest_adhoc.ks
%include /ksincludes/icos7pkgexclusions.ks
%end
##################################
# %post section
##################################
%post --log=/tmp/ks-post-chroot.log
echo "######################################################"
echo "This is the regular (chroot) part of the post-install."
echo "######################################################"
%include /ksincludes/icos7configs.ks
%include /ksincludes/icos7ntp.ks
# %include /ksincludes/icos7ipa.ks
%include /ksincludes/icos7bulk_rpm_installs.ks
%include /ksincludes/icos7repoforge_and_epel.ks
# %include /ksincludes/icos7bru.ks
# Install & affiliate to CF3:
%include /ksincludes/icos7cfengine3.ks
yum clean all
yum -y update
echo " ___________________________________ "
echo " < Kickstart for CentOS 7 finished >"
echo " ----------------------------------- "
echo " \ ^__^"
echo " \ (oo)\_______"
echo " (__)\ )\/\ "
echo " ||----w |"
echo " || ||"
echo " "
%end
#####################
# %pre section:
#####################
# Makes extra KS configurations available via NFS shares from repo server vega.
%pre
echo "####################################"
echo " %pre : pre-install component."
echo "####################################"
mkdir /ksincludes
mkdir /ksconfigsrepo
mount -t nfs -o nolock vega:/export/scratch/linux/ks/centos/ksincludes /ksincludes
mount -t nfs -o nolock vega:/export/scratch/linux/ks/centos/ksconfigsrepo /ksconfigsrepo
%end
## EOF ##