Sha256: a08835d2aacb808086f3ccdc6a4e22ee098164eb2f93892cfa25a442d85516a9

Contents?: true

Size: 1.57 KB

Versions: 170

Compression:

Stored size: 1.57 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 https://raw.github.com/mitchellh/vagrant/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

# remove zypper locks, preventing installation of additional packages,
# present because of the autoinst <software><remove-packages>
echo -e "\nremove zypper package locks ..."
rm -f /etc/zypp/locks

# 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

170 entries across 31 versions & 2 rubygems

Version Path
veewee-0.3.0.alpha9 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh
veewee-0.3.0.alpha9 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha9 templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh
veewee-0.3.0.alpha9 templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh
veewee-0.3.0.alpha9 templates/openSUSE-11.4-NET-x86_64/postinstall.sh
veewee-0.3.0.alpha9 templates/openSUSE-11.4-NET-i586/postinstall.sh
veewee-0.3.0.alpha8 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha8 templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh
veewee-0.3.0.alpha8 templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh
veewee-0.3.0.alpha8 templates/openSUSE-11.4-NET-x86_64/postinstall.sh
veewee-0.3.0.alpha8 templates/openSUSE-11.4-NET-i586/postinstall.sh
veewee-0.3.0.alpha8 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh
veewee-0.3.0.alpha7 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha7 templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh
veewee-0.3.0.alpha7 templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh
veewee-0.3.0.alpha7 templates/openSUSE-11.4-NET-x86_64/postinstall.sh
veewee-0.3.0.alpha7 templates/openSUSE-11.4-NET-i586/postinstall.sh
veewee-0.3.0.alpha7 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh
veewee-0.3.0.alpha6 templates/openSUSE-11.4-DVD-i586/postinstall.sh
veewee-0.3.0.alpha6 templates/openSUSE-11.4-DVD-x86_64/postinstall.sh