Sha256: 74ce0c1959988058569222c108043e6985122c55d69223cb32b10c462a2c1ab1

Contents?: true

Size: 1.47 KB

Versions: 15

Compression:

Stored size: 1.47 KB

Contents

#http://adrianbravo.tumblr.com/post/644860401

#Updating the box
apt-get -y update
#apt-get -y upgrade
apt-get -y remove apparmor
apt-get -y install linux-headers-$(uname -r) build-essential
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
apt-get clean

#Setting up sudo
cp /etc/sudoers /etc/sudoers.orig
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers

#Installing ruby
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz

#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
/opt/ruby/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 'http://github.com/mitchellh/vagrant/raw/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
exit

Version data entries

15 entries across 5 versions & 1 rubygems

Version Path
veewee-0.1.22 templates/ubuntu-10.10-server-i386/postinstall.sh
veewee-0.1.22 templates/ubuntu-10.10-server-i386-netboot/postinstall.sh
veewee-0.1.22 templates/ubuntu-10.10-server-amd64/postinstall.sh
veewee-0.1.21 templates/ubuntu-10.10-server-amd64/postinstall.sh
veewee-0.1.21 templates/ubuntu-10.10-server-i386/postinstall.sh
veewee-0.1.21 templates/ubuntu-10.10-server-i386-netboot/postinstall.sh
veewee-0.1.20 templates/ubuntu-10.10-server-i386-netboot/postinstall.sh
veewee-0.1.20 templates/ubuntu-10.10-server-amd64/postinstall.sh
veewee-0.1.20 templates/ubuntu-10.10-server-i386/postinstall.sh
veewee-0.1.19 templates/ubuntu-10.10-server-i386/postinstall.sh
veewee-0.1.19 templates/ubuntu-10.10-server-i386-netboot/postinstall.sh
veewee-0.1.19 templates/ubuntu-10.10-server-amd64/postinstall.sh
veewee-0.1.18 templates/ubuntu-10.10-server-amd64/postinstall.sh
veewee-0.1.18 templates/ubuntu-10.10-server-i386/postinstall.sh
veewee-0.1.18 templates/ubuntu-10.10-server-i386-netboot/postinstall.sh