forked from OSC/ood-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathood-el7.ks
70 lines (56 loc) · 1.52 KB
/
ood-el7.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
install
text
url --url http://mirror.centos.org/centos/7/os/x86_64/
repo --name=extras --baseurl=http://mirror.centos.org/centos/7/extras/x86_64/
lang en_US.UTF-8
selinux --disabled
keyboard us
skipx
network --bootproto dhcp --onboot yes --device eth0 --noipv6
# ood
rootpw --iscrypted $6$ae53b3deef007710$BOS4bylh9l4c6KWafdToj39efiVyItSTvCRk63qexkzD3J0qygzuFdCAMtFZA4A4jODC9J/7pv5riNy.a/nxA.
firewall --enable --service=ssh,http,https
authconfig --useshadow --passalgo=sha512
timezone --utc America/New_York
bootloader --location=mbr --driveorder=sda --append="nofb quiet splash=quiet net.ifnames=0 biosdevname=0"
zerombr
clearpart --all --initlabel
autopart
%packages
yum
yum-utils
dhclient
ntp
wget
@Core
%end
%post --nochroot
exec < /dev/tty3 > /dev/tty3
#changing to VT 3 so that we can see whats going on....
/usr/bin/chvt 3
(
cp -va /etc/resolv.conf /mnt/sysimage/etc/resolv.conf
/usr/bin/chvt 1
) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log
%end
%post
logger "Starting anaconda postinstall"
exec < /dev/tty3 > /dev/tty3
#changing to VT 3 so that we can see whats going on....
/usr/bin/chvt 3
(
#update local time
echo "updating system time"
/usr/sbin/ntpdate -sub 0.fedora.pool.ntp.org
/usr/sbin/hwclock --systohc
# update all the base packages from the updates repository
yum -t -y update
yum install -y centos-release-scl
yum install -y https://yum.osc.edu/ondemand/1.7/ondemand-release-web-1.7-1.noarch.rpm
yum install -y ondemand
systemctl enable httpd24-httpd
sync
) 2>&1 | tee /root/install.post.log
exit 0
%end
reboot