Sha256: 22b15705b3b708a470ab8a62f5276189866e04b1e84720de79b275e78c59db94

Contents?: true

Size: 1.38 KB

Versions: 16

Compression:

Stored size: 1.38 KB

Contents

#
# postinstall.sh
#

date > /etc/vagrant_box_build_time

# install vagrant key
echo -e "\ninstall vagrant key ..."
mkdir -m 0700 /home/vagrant/.ssh
cd /home/vagrant/.ssh
wget --no-check-certificate -O authorized_keys http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub
chmod 0600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant.users /home/vagrant/.ssh

# update sudoers
echo -e "\nupdate sudoers ..."
echo -e "\n# added by veewee/postinstall.sh" >> /etc/sudoers
echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers

# speed-up remote logins
echo -e "\nspeed-up remote logins ..."
echo -e "\n# added by veewee/postinstall.sh" >> /etc/ssh/sshd_config
echo -e "UseDNS no\n" >> /etc/ssh/sshd_config

# install chef and puppet
echo -e "\ninstall chef and puppet ..."
gem install chef --no-ri --no-rdoc
gem install puppet --no-ri --no-rdoc

# install the virtualbox guest additions
echo -e "\ninstall the virtualbox guest additions ..."
zypper --non-interactive remove `rpm -qa virtualbox-guest-*`
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
cd /tmp
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
#wget http://192.168.178.10/VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt
rm -f VBoxGuestAdditions_$VBOX_VERSION.iso

echo -e "\nall done.\n"
exit

Version data entries

16 entries across 4 versions & 1 rubygems

Version Path
veewee-0.3.0.alpha4 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha4 templates/openSUSE-11.4-NET-x86_64/postinstall.sh
veewee-0.3.0.alpha4 templates/openSUSE-11.4-NET-i586/postinstall.sh
veewee-0.3.0.alpha4 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh
veewee-0.3.0.alpha3 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha3 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh
veewee-0.3.0.alpha3 templates/openSUSE-11.4-NET-i586/postinstall.sh
veewee-0.3.0.alpha3 templates/openSUSE-11.4-NET-x86_64/postinstall.sh
veewee-0.3.0.alpha2 templates/openSUSE-11.4-NET-x86_64/postinstall.sh
veewee-0.3.0.alpha2 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha2 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh
veewee-0.3.0.alpha2 templates/openSUSE-11.4-NET-i586/postinstall.sh
veewee-0.3.0.alpha1 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha1 templates/openSUSE-11.4-NET-x86_64/postinstall.sh
veewee-0.3.0.alpha1 templates/openSUSE-11.4-NET-i586/postinstall.sh
veewee-0.3.0.alpha1 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh