-
Notifications
You must be signed in to change notification settings - Fork 1
/
kickstart.cfg.template
49 lines (42 loc) · 1.28 KB
/
kickstart.cfg.template
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
text
skipx
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
auth --useshadow --passalgo=md5
selinux --disabled
firewall --disabled
zerombr
bootloader --location=mbr
rootpw $ROOT_PW
reboot
clearpart --all --initlabel
part / --asprimary --fstype=ext4 --grow --maxsize=$DISK_MB --size=1
network --onboot=on --bootproto=static --ip=$VM_IP --netmask=$VIRBR0_NETMASK --gateway=$VIRBR0_IP --nameserver $VIRBR0_IP
services --enabled=network
# Repositories
url --url=http://mirrors.kernel.org/centos/$OS_RELEASE/os/$PLATFORM/
repo --name=updates --baseurl=http://mirrors.kernel.org/centos/$OS_RELEASE/updates/$PLATFORM/
repo --name=EPEL --baseurl=http://mirrors.kernel.org/fedora-epel/$OS_RELEASE/$PLATFORM/
%packages --nobase --instLangs=en
@Core
epel-release
man
nc
openssh-clients
perl
strace
wget
yum-plugin-fastestmirror
zsh
%post
rpm -e $(rpm -qa \*firmware | grep -v kernel)
yum -y remove audit authconfig checkpolicy libsemanage policycoreutils selinux-policy selinux-policy-targeted
yum clean all
rm -rf /etc/selinux/targeted
echo "$VM_IP $VM_HOSTNAME" >> /etc/hosts
/usr/sbin/useradd -g users -s /bin/zsh -c "Collabograte User" -m collabograte
chmod 755 /home/collabograte
echo $COLLABOGRATE_PW | passwd --stdin collabograte
echo "collabograte ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
%end