Last active
January 1, 2016 22:49
-
-
Save pdeschen/8212746 to your computer and use it in GitHub Desktop.
shelter kick start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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