From 338173c01e34df08bd4d12a7969a4e44113897f5 Mon Sep 17 00:00:00 2001 From: Bernhard Gschaider Date: Mon, 10 Feb 2014 14:34:45 +0100 Subject: [PATCH] Add a CentOS 6 Box. Installs but compilation is untested --HG-- rename : vagrantSandbox/initUbunutuScript.sh => vagrantSandbox/initCentOSRHELScript.sh --- vagrantSandbox/Vagrantfile | 9 ++++++++ vagrantSandbox/initCentOSRHELScript.sh | 32 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 vagrantSandbox/initCentOSRHELScript.sh diff --git a/vagrantSandbox/Vagrantfile b/vagrantSandbox/Vagrantfile index e3be2edb7..b1ea907f5 100644 --- a/vagrantSandbox/Vagrantfile +++ b/vagrantSandbox/Vagrantfile @@ -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 diff --git a/vagrantSandbox/initCentOSRHELScript.sh b/vagrantSandbox/initCentOSRHELScript.sh new file mode 100755 index 000000000..08ccf9fc3 --- /dev/null +++ b/vagrantSandbox/initCentOSRHELScript.sh @@ -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"