jan kaufman | 3ea7ab5 | 2015-04-10 10:58:00 +0200 | [diff] [blame^] | 1 | install |
| 2 | cdrom |
| 3 | lang en_US.UTF-8 |
| 4 | keyboard us |
| 5 | network --onboot yes --device eth0 --bootproto dhcp --noipv6 |
| 6 | rootpw --plaintext vagrant |
| 7 | firewall --enabled --service=ssh |
| 8 | authconfig --enableshadow --passalgo=sha512 |
| 9 | selinux --disabled |
| 10 | timezone Europe/Prague |
| 11 | bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet" |
| 12 | |
| 13 | text |
| 14 | skipx |
| 15 | zerombr |
| 16 | |
| 17 | clearpart --all --initlabel |
| 18 | autopart |
| 19 | |
| 20 | auth --useshadow --enablemd5 |
| 21 | firstboot --disabled |
| 22 | reboot |
| 23 | |
| 24 | %packages --ignoremissing |
| 25 | @core |
| 26 | bzip2 |
| 27 | kernel-devel |
| 28 | kernel-headers |
| 29 | -ipw2100-firmware |
| 30 | -ipw2200-firmware |
| 31 | -ivtv-firmware |
| 32 | %end |
| 33 | |
| 34 | %post |
| 35 | /usr/bin/yum -y install sudo |
| 36 | /usr/sbin/groupadd -g 501 vagrant |
| 37 | /usr/sbin/useradd vagrant -u 501 -g vagrant -G wheel |
| 38 | echo "vagrant"|passwd --stdin vagrant |
| 39 | echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant |
| 40 | chmod 0440 /etc/sudoers.d/vagrant |
| 41 | %end |