You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.4 KiB
72 lines
1.4 KiB
# MSVSphere 9 Vagrant boxes kickstart file
|
|
|
|
url --url https://repo1.msvsphere-os.ru/msvsphere/9/BaseOS/x86_64/kickstart/
|
|
repo --name=BaseOS --baseurl=https://repo1.msvsphere-os.ru/msvsphere/9/BaseOS/x86_64/os/
|
|
repo --name=AppStream --baseurl=https://repo1.msvsphere-os.ru/msvsphere/9/AppStream/x86_64/os/
|
|
|
|
text
|
|
skipx
|
|
eula --agreed
|
|
firstboot --disabled
|
|
|
|
lang C.UTF-8
|
|
keyboard us
|
|
timezone UTC --utc
|
|
|
|
network --bootproto=dhcp
|
|
firewall --disabled
|
|
services --enabled=sshd
|
|
selinux --enforcing
|
|
|
|
bootloader --location=mbr
|
|
zerombr
|
|
clearpart --all --initlabel
|
|
autopart --type=plain --nohome --noboot --noswap
|
|
|
|
rootpw vagrant
|
|
user --name=vagrant --plaintext --password vagrant
|
|
|
|
reboot --eject
|
|
|
|
|
|
%packages --inst-langs=en
|
|
@core
|
|
bzip2
|
|
dracut-config-generic
|
|
tar
|
|
usermode
|
|
-biosdevname
|
|
-dnf-plugin-spacewalk
|
|
-dracut-config-rescue
|
|
-iprutils
|
|
-iwl*-firmware
|
|
-langpacks-*
|
|
-mdadm
|
|
-open-vm-tools
|
|
-plymouth
|
|
-rhn*
|
|
sphere-release-identity-server
|
|
sphere-release-server
|
|
sphere-release
|
|
%end
|
|
|
|
|
|
# disable kdump service
|
|
%addon com_redhat_kdump --disable
|
|
%end
|
|
|
|
|
|
%post
|
|
# allow passwordless sudo for the vagrant user
|
|
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
|
|
|
|
# see Vagrant documentation (https://docs.vagrantup.com/v2/boxes/base.html)
|
|
# for details about the requiretty.
|
|
sed -i "s/^.*requiretty/# Defaults requiretty/" /etc/sudoers
|
|
yum clean all
|
|
|
|
# permit root login via SSH with password authentication
|
|
echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/01-permitrootlogin.conf
|
|
|
|
%end
|