Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Last active January 1, 2016 22:49
Show Gist options
  • Save pdeschen/8212746 to your computer and use it in GitHub Desktop.
Save pdeschen/8212746 to your computer and use it in GitHub Desktop.
shelter kick start
#!/bin/bash
VIRTUAL_BOX_VERSION=${1:-4.3}
VAGRANT_VERSION=${2:-1.4.2}
ARCH=`arch`
if [! -e /etc/redhat-release ] ; then
echo "Only RHEL flavour supported."
exit 1;
fi
echo "Kick starting shelter with VirtualBox ($VIRTUAL_BOX_VERSION) and Vagrant ($VAGRANT_VERSION)"
yum install wget -y
if [ ! -e /etc/yum.repos.d/virtualbox.repo ] ; then
wget -O /etc/yum.repos.d/virtualbox.repo http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
fi
yum install dkms VirtualBox-$VIRTUAL_BOX_VERSION -y
if [ ! -e `which vagrant` ]; then
rpm -i https://dl.bintray.com/mitchellh/vagrant/vagrant_$VAGRANT_$ARCH.rpm
fi
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment