This repository has been archived by the owner on Jul 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ks.cfg
67 lines (58 loc) · 1.67 KB
/
ks.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
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --noipv6 --activate
# Root password
rootpw --lock
# System services
services --enabled="chronyd"
# System timezone
timezone America/New_York --isUtc
user --groups=wheel --name=router --password=this_is_only_an_example_password_please_change_me --plaintext
# System bootloader configuration
bootloader --location=mbr
autopart --type=lvm
# Partition clearing information
clearpart --all --initlabel
%packages
@^minimal
@core
chrony
%end
%addon com_redhat_kdump --disable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty
%end
# Erratum
reboot
selinux --permissive
%post --nochroot --log=/mnt/sysimage/root/kickstart-nochroot.log
rsync -rP /run/install/repo/pillar /mnt/sysimage/srv/
rsync -rP /run/install/repo/salt /mnt/sysimage/etc/
rsync -rP /run/install/repo/states /mnt/sysimage/srv/
%end
%post --log=/root/kickstart-chroot.log
yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm -y
yum install salt-master -y
yum install salt-minion -y
systemctl enable salt-master salt-minion
systemctl start salt-master salt-minion
systemctl enable sshd
sudo yum update -y
%end
# End Erratum