| install |
| cdrom |
| lang en_US.UTF-8 |
| keyboard us |
| network --onboot yes --device eth0 --bootproto dhcp --noipv6 |
| rootpw --plaintext vagrant |
| firewall --enabled --service=ssh |
| authconfig --enableshadow --passalgo=sha512 |
| selinux --disabled |
| timezone Europe/Prague |
| bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet" |
| |
| text |
| skipx |
| zerombr |
| |
| clearpart --all --initlabel |
| autopart |
| |
| auth --useshadow --enablemd5 |
| firstboot --disabled |
| reboot |
| |
| %packages --ignoremissing |
| @core |
| bzip2 |
| kernel-devel |
| kernel-headers |
| -ipw2100-firmware |
| -ipw2200-firmware |
| -ivtv-firmware |
| %end |
| |
| %post |
| /usr/bin/yum -y install sudo |
| /usr/sbin/groupadd -g 501 vagrant |
| /usr/sbin/useradd vagrant -u 501 -g vagrant -G wheel |
| echo "vagrant"|passwd --stdin vagrant |
| echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant |
| chmod 0440 /etc/sudoers.d/vagrant |
| %end |