Add a CentOS 6 Box. Installs but compilation is untested

--HG--
rename : vagrantSandbox/initUbunutuScript.sh => vagrantSandbox/initCentOSRHELScript.sh
This commit is contained in:
Bernhard Gschaider 2014-02-10 14:34:45 +01:00
parent 5572d00013
commit 338173c01e
2 changed files with 41 additions and 0 deletions

View file

@ -39,4 +39,13 @@ Vagrant.configure("2") do |config|
end
end
config.vm.define :centos65 do |centos65|
centos65.vm.box = "centos65"
centos65.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
centos65.vm.provision :shell do |s|
s.args = "centos65"
s.path = "initCentOSRHELScript.sh"
end
end
end

View file

@ -0,0 +1,32 @@
#! /bin/bash
boxName=$1
echo
echo "Init script for $boxName"
echo
# some of these packages are already installed. But lets be sure
neededPackages=(gcc-g++ mercurial git flex bison make ccache rpm-build)
bonusPackages=(emacs csh tcsh zsh)
for p in ${neededPackages[@]}; do
yum install -y $p
done
for p in ${bonusPackages[@]}; do
yum install -y $p
done
echo "Update mercurial to a more recent version"
rpm -Uhv http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
echo
echo "RHEL/CentOS-specific ended. Now doing general stuff"
echo
/vagrant/initGeneralScript.sh
echo
echo "Ended"