Only enabled so far for Archlinux and CentOS. Also, needed to change file endings on ALL THE THINGS. Might or might not show up.
66 lines
1.3 KiB
INI
66 lines
1.3 KiB
INI
install
|
|
text
|
|
reboot
|
|
network --bootproto=dhcp --activate
|
|
url --url=http://mirror.centos.org/centos/7/os/x86_64/
|
|
repo --name=updates --baseurl=http://mirror.centos.org/centos/7/updates/x86_64/
|
|
lang en_US.UTF-8
|
|
keyboard us
|
|
timezone --utc Etc/UTC
|
|
rootpw --plaintext vagrant
|
|
user --name=vagrant --groups=vagrant --password=vagrant --plaintext
|
|
zerombr
|
|
clearpart --all --initlabel
|
|
autopart --type=plain
|
|
bootloader --timeout=1
|
|
|
|
%packages
|
|
@core
|
|
which
|
|
libselinux-python
|
|
# mandatory packages in the @core group
|
|
-btrfs-progs
|
|
-iprutils
|
|
-kexec-tools
|
|
-plymouth
|
|
# default packages in the @core group
|
|
-*-firmware
|
|
-dracut-config-rescue
|
|
-kernel-tools
|
|
-libsysfs
|
|
-microcode_ctl
|
|
-NetworkManager*
|
|
-postfix
|
|
-rdma
|
|
%end
|
|
|
|
%post --erroronfail
|
|
yum -y update
|
|
|
|
cat <<EOF > /etc/sudoers.d/vagrant
|
|
Defaults:vagrant !requiretty
|
|
vagrant ALL=(ALL) NOPASSWD: ALL
|
|
EOF
|
|
chmod 440 /etc/sudoers.d/vagrant
|
|
|
|
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
|
|
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 <<EOF
|
|
DEVICE="eth0"
|
|
BOOTPROTO="dhcp"
|
|
ONBOOT="yes"
|
|
TYPE="Ethernet"
|
|
EOF
|
|
|
|
sed -i -E -e 's/^.*UseDNS.*$/UseDNS no/'
|
|
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/sshd_config
|
|
|
|
virt="$(systemd-detect-virt)"
|
|
if [ "${virt}" == "microsoft" ]; then
|
|
yum install -y hyperv-daemons
|
|
systemctl enable hpervfcopyd
|
|
systemctl enable hypervkvpd
|
|
systemctl enable hypervvssd
|
|
fi
|
|
%end
|
|
|