Created
October 3, 2016 18:29
-
-
Save olegslavkin/95c28f0c67c28d937e0997ce2d1bd68f to your computer and use it in GitHub Desktop.
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
install | |
text | |
cdrom | |
skipx | |
lang en_US.UTF-8 | |
keyboard us | |
timezone UTC | |
rootpw vagrant | |
user --name=vagrant --password=vagrant | |
auth --enableshadow --passalgo=sha512 --kickstart | |
firewall --disabled | |
selinux --permissive | |
bootloader --location=mbr | |
zerombr | |
clearpart --all --initlabel | |
autopart | |
firstboot --disable | |
reboot | |
%packages --instLangs=en_US.utf8 --nobase --ignoremissing --excludedocs | |
openssh-clients | |
sudo | |
kernel-headers | |
kernel-devel | |
gcc | |
make | |
perl | |
curl | |
wget | |
nfs-utils | |
net-tools | |
vim-minimal | |
bzip2 | |
-fprintd-pam | |
-intltool | |
-mariadb-libs | |
-postfix | |
-linux-firmware | |
-aic94xx-firmware | |
-atmel-firmware | |
-b43-openfwwf | |
-bfa-firmware | |
-ipw2100-firmware | |
-ipw2200-firmware | |
-ivtv-firmware | |
-iwl100-firmware | |
-iwl105-firmware | |
-iwl135-firmware | |
-iwl1000-firmware | |
-iwl2030-firmware | |
-iwl2000-firmware | |
-iwl3060-firmware | |
-iwl3160-firmware | |
-iwl3945-firmware | |
-iwl4965-firmware | |
-iwl5000-firmware | |
-iwl5150-firmware | |
-iwl6000-firmware | |
-iwl6000g2a-firmware | |
-iwl6000g2b-firmware | |
-iwl6050-firmware | |
-iwl7260-firmware | |
-libertas-sd8686-firmware | |
-libertas-sd8787-firmware | |
-libertas-usb8388-firmware | |
-ql2100-firmware | |
-ql2200-firmware | |
-ql23xx-firmware | |
-ql2400-firmware | |
-ql2500-firmware | |
-rt61pci-firmware | |
-rt73usb-firmware | |
-xorg-x11-drv-ati-firmware | |
-zd1211-firmware | |
%end | |
%post --log=/root/ks.log | |
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant | |
echo "Defaults:vagrant !requiretty" >> /etc/sudoers.d/vagrant | |
chmod 0440 /etc/sudoers.d/vagrant | |
mkdir -pm 700 /home/vagrant/.ssh | |
#curl -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub | |
cat <<EOK >/home/vagrant/.ssh/authorized_keys | |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8Y\ | |
Vr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdO\ | |
KLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7Pt\ | |
ixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmC\ | |
P3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcW\ | |
yLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key | |
EOK | |
chmod 0600 /home/vagrant/.ssh/authorized_keys | |
chown -R vagrant.vagrant /home/vagrant/.ssh | |
yum -y update | |
yum -y remove linux-firmware | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment