forked from jedi4ever/veewee
/
postinstall.sh
43 lines (35 loc) · 937 Bytes
/
postinstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
date > /etc/vagrant_box_build_time
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
# Must exclude kernel for now. Otherwise, kernel gets upgraded before reboot,
# but VirtualBox tools get compiled against the old kernel, so the fresh
# image will refuse to start under Vagrant.
yum -y update --exclude kernel*
yum -y install \
ruby \
ruby-devel \
puppet \
rubygems \
rubygem-bunny \
rubygem-erubis \
rubygem-highline \
rubygem-json \
rubygem-mime-types \
rubygem-net-ssh \
rubygem-polyglot \
rubygem-rest-client \
rubygem-systemu \
rubygem-treetop \
rubygem-uuidtools \
wget \
tar \
bzip2
cd /tmp
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt
rm VBoxGuestAdditions_$VBOX_VERSION.iso
gem install chef --no-rdoc --no-ri
exit
# EOF