Sha256: 3027f54c65832de7199d68dbeff8bf145a40562900cf89822aa4c69942658612

Contents?: true

Size: 1.78 KB

Versions: 16

Compression:

Stored size: 1.78 KB

Contents

#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
#kernel source is needed for vbox additions

date > /etc/vagrant_box_build_time

yum -y install gcc bzip2 make kernel-devel-`uname -r`
#yum -y update
#yum -y upgrade

# Make ssh faster by not waiting on DNS
echo "UseDNS no" >> /etc/ssh/sshd_config

yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
yum -y clean all

#Installing ruby
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz || fail "Could not download Ruby source"
tar xzvf ruby-1.9.2-p180.tar.gz 
cd ruby-1.9.2-p180
./configure
make && make install
cd /tmp
rm -rf /tmp/ruby-1.9.2-p180
rm /tmp/ruby-1.9.2-p180.tar.gz
ln -s /usr/local/bin/ruby /usr/bin/ruby # Create a sym link for the same path
ln -s /usr/local/bin/gem /usr/bin/gem # Create a sym link for the same path

#Installing chef & Puppet
/usr/bin/gem install chef --no-ri --no-rdoc
/usr/bin/gem install puppet --no-ri --no-rdoc

#Installing vagrant keys
mkdir /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
cd /home/vagrant/.ssh
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
chown -R vagrant /home/vagrant/.ssh

#Installing the virtualbox guest additions
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
cd /tmp
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt

rm VBoxGuestAdditions_$VBOX_VERSION.iso

sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^\(.*env_keep = \"\)/\1PATH /" /etc/sudoers

#poweroff -h

exit

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.5.0.alpha3 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.5.0.alpha2 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.5.0.alpha1 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.5.1 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.5 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.5.pre1 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.4 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.3 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.2 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.1 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.4.0 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.3.12 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.3.11 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.3.10 templates/CentOS-5.7-i386-netboot/postinstall.sh
veewee-0.3.9 templates/CentOS-5.7-i386-netboot/postinstall.sh