-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Centos9 Stable devel json, kickstart and remove centos7 packer
- Loading branch information
Showing
3 changed files
with
54 additions
and
95 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,46 +1,60 @@ | ||
install | ||
cdrom | ||
# Version=EL9 | ||
# Partition clearing information | ||
clearpart --all --initlabel | ||
autopart --type=lvm | ||
# Use network installation | ||
url --url https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/ | ||
# Keyboard layouts | ||
keyboard --vckeymap=us --xlayouts='us' | ||
# System language | ||
lang en_US.UTF-8 | ||
keyboard us | ||
unsupported_hardware | ||
network --bootproto=dhcp --device=eth0 --onboot=on --hostname=centos7-katello-devel-stable.example.com | ||
rootpw vagrant | ||
# Create vagrant user | ||
user --name=vagrant --groups=wheel --password vagrant --plaintext | ||
# Network information | ||
network --bootproto=dhcp --device=enp0s3 --activate --hostname=centos9-katello-devel-stable.example.com | ||
firewall --disabled | ||
# Set SELinux to permissive | ||
selinux --permissive | ||
timezone UTC | ||
unsupported_hardware | ||
bootloader --location=mbr | ||
text | ||
skipx | ||
zerombr | ||
clearpart --all --initlabel | ||
autopart | ||
auth --enableshadow --passalgo=sha512 --kickstart | ||
# Root password | ||
rootpw vagrant | ||
# Do not run the Setup Agent on first boot and agree to the EULA | ||
firstboot --disabled | ||
eula --agreed | ||
# Do not configure the X Window System | ||
cmdline | ||
skipx | ||
# System services | ||
services --enabled=NetworkManager,sshd | ||
# System timezone | ||
timezone UTC | ||
reboot | ||
user --name=vagrant --plaintext --password vagrant --groups=vagrant,wheel | ||
|
||
%packages --ignoremissing --excludedocs | ||
@Base | ||
@Core | ||
openssh-clients | ||
%packages --excludedocs | ||
sudo | ||
openssl-devel | ||
readline-devel | ||
vim | ||
wget | ||
curl | ||
vim | ||
openssl | ||
kexec-tools | ||
openssh-clients | ||
openssl-devel | ||
%end | ||
|
||
%post | ||
yum update -y | ||
# Disable kdump | ||
%addon com_redhat_kdump --disable | ||
%end | ||
|
||
# sudo | ||
yum install -y sudo | ||
%post | ||
exec < /dev/tty3 > /dev/tty3 | ||
chvt 3 | ||
echo | ||
echo "################################" | ||
echo "# Running Post Configuration #" | ||
echo "################################" | ||
( | ||
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant | ||
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers | ||
|
||
yum clean all | ||
) 2>&1 | /usr/bin/tee /var/log/post_install.log | ||
chvt 1 | ||
|
||
%end |