-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22f413e
commit 0ca2b8f
Showing
53 changed files
with
1,428 additions
and
1,133 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
#version=RHEL8 | ||
# X Window System configuration information | ||
# License agreement | ||
eula --agreed | ||
# Use graphical install | ||
text | ||
# SELinux configuration | ||
selinux --disabled | ||
# Network information | ||
network --bootproto=dhcp --noipv6 --activate | ||
# Use CDROM installation media | ||
cdrom | ||
# Run the Setup Agent on first boot | ||
firstboot --disable | ||
# System services | ||
services --enabled="chronyd" | ||
services --enabled="sshd" | ||
services --enabled="NetworkManager" | ||
|
||
# Keyboard layouts | ||
keyboard --vckeymap=us --xlayouts='us' | ||
# System language | ||
lang en_US --addsupport=en_GB.UTF-8 | ||
|
||
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream | ||
# Root password | ||
rootpw --plaintext password | ||
# System timezone | ||
timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org | ||
# System bootloader configuration | ||
bootloader --location=mbr | ||
zerombr | ||
# Partition clearing information | ||
clearpart --all --initlabel | ||
# Disk partitioning information | ||
part /boot/efi --fstype="vfat" --size=400 | ||
part /boot --fstype="ext4" --size=2048 | ||
part swap --fstype="swap" --size=8192 | ||
part / --fstype="ext4" --grow --size=1 | ||
|
||
%packages | ||
@guest-agents | ||
@legacy-unix | ||
@system-tools | ||
mc | ||
curl | ||
wget | ||
tar | ||
bzip2 | ||
kernel-devel | ||
kernel-headers | ||
perl | ||
gcc | ||
git | ||
make | ||
elfutils-libelf-devel | ||
langpacks-en | ||
glibc-all-langpacks | ||
openssh-server | ||
openssh-clients | ||
openssh | ||
tuned | ||
tuned-profiles-atomic | ||
qemu-guest-agent | ||
python3-pip | ||
python3-setuptools | ||
spice-vdagent | ||
qemu-guest-agent | ||
cloud-init | ||
cloud-utils-growpart | ||
%end | ||
|
||
%addon com_redhat_subscription_manager | ||
%end | ||
%addon ADDON_placeholder --disable --reserve-mb=auto | ||
%end | ||
%addon com_redhat_kdump --disable | ||
%end | ||
|
||
%anaconda | ||
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty | ||
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok | ||
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty | ||
%end | ||
|
||
# post part | ||
%post --log=/var/log/anaconda/kickstart_post_sshd.log | ||
sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | ||
sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config | ||
sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | ||
systemctl enable sshd --now | ||
%end | ||
|
||
%post --log=/var/log/anaconda/kickstart_post.log | ||
systemctl enable sshd --now | ||
systemctl enable qemu-guest-agent | ||
systemctl set-default multi-user.target | ||
%end | ||
|
||
#reboot | ||
reboot |
Oops, something went wrong.