# Kickstart file automatically generated by anaconda. install cdrom lang en_US.UTF-8 keyboard us network --onboot yes --device p2p1 --bootproto dhcp --noipv6 timezone --utc America/Los_Angeles rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0 selinux --enforcing authconfig --enableshadow --passalgo=sha512 firewall --service=ssh # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work clearpart --all --drives=sda --initlabel part /boot --fstype=ext4 --size=500 part pv.2 --grow --size=500 volgroup vg_vagrant --pesize=32768 pv.2 logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrant --size=1024 --grow logvol swap --fstype=swap --name=lv_swap --vgname=vg_vagrant --size=528 --grow --maxsize=1056 bootloader --location=mbr --driveorder=sda --append="norhgb" repo --name="Fedora 15 - i386" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-15&arch=i386 --cost=1000 repo --name="Fedora 15 - i386 - Updates" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f15&arch=i386 --cost=1000 services --enabled network reboot %packages @core @online-docs # Requirements for vagrant kernel-PAE-devel kernel-headers make gcc # For puppet puppet # For Chef ruby-devel rubygems rubygem-erubis rubygem-highline rubygem-json rubygem-mime-types rubygem-net-ssh rubygem-polyglot rubygem-rest-client rubygem-treetop rubygem-uuidtools %end %post # Make ssh quicker in disconnected situations. echo 'UseDNS no' >> /etc/ssh/sshd_config # Add Vagrant user and group. /usr/sbin/groupadd vagrant /usr/sbin/useradd vagrant -g vagrant echo "vagrant"|passwd --stdin vagrant # Give Vagrant user permission to sudo. echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant chmod 440 /etc/sudoers.d/vagrant # Install chef. gem install chef --no-ri --no-rdoc # Install vagrant authorized ssh key. mkdir /home/vagrant/.ssh curl -L 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' > /home/vagrant/.ssh/authorized_keys chown vagrant:vagrant -R /home/vagrant/.ssh chmod 700 /home/vagrant/.ssh chmod 600 /home/vagrant/.ssh/authorized_keys chcon -R unconfined_u:object_r:user_home_t:s0 /home/vagrant/.ssh %end