From b96880ab6e7281aa28cbade604b2788a7dea3061 Mon Sep 17 00:00:00 2001 From: Bernhard Gschaider Date: Mon, 10 Feb 2014 16:34:06 +0100 Subject: [PATCH] FreeBSD and OpenSUSE-machines. Currently not working --HG-- rename : vagrantSandbox/initCentOSRHELScript.sh => vagrantSandbox/initFreeBSDScript.sh rename : vagrantSandbox/initCentOSRHELScript.sh => vagrantSandbox/initOpenSUSEScript.sh --- vagrantSandbox/README | 4 ++++ vagrantSandbox/Vagrantfile | 29 ++++++++++++++++++++++++++++ vagrantSandbox/initFreeBSDScript.sh | 16 +++++++++++++++ vagrantSandbox/initOpenSUSEScript.sh | 16 +++++++++++++++ 4 files changed, 65 insertions(+) create mode 100755 vagrantSandbox/initFreeBSDScript.sh create mode 100755 vagrantSandbox/initOpenSUSEScript.sh diff --git a/vagrantSandbox/README b/vagrantSandbox/README index 9393d8ffa..ca36ba2ab 100644 --- a/vagrantSandbox/README +++ b/vagrantSandbox/README @@ -34,6 +34,10 @@ =lucid=-machine. Not yet working - centos65 :: A CentOS 6.5 machine with preinstalled development tools + - freebsd92 :: FreeBSD 9.2 32-bit machine. Untested + - freebsd10 :: FreeBSD 10.0 32-big machine. Currently does not boot + properly + - opensuse12 :: OpenSUSE 12.3 machine. Boots but is not provisioned * Scripts In the home directory these scripts are found - bootstrapFoam.sh :: A script whose aim it is to compile Foam and diff --git a/vagrantSandbox/Vagrantfile b/vagrantSandbox/Vagrantfile index b1ea907f5..e07baee3b 100644 --- a/vagrantSandbox/Vagrantfile +++ b/vagrantSandbox/Vagrantfile @@ -48,4 +48,33 @@ Vagrant.configure("2") do |config| end end + config.vm.define :freebsd92 do |freebsd92| + freebsd92.vm.box = "freebsd92" +# freebsd92.vm.box_url = "https://wunki.org/files/freebsd-9.2-amd64-wunki.box" + freebsd92.vm.box_url = "http://iris.hosting.lv/freebsd-9.2-i386.box" + freebsd92.vm.provision :shell do |s| + s.args = "freebsd92" + s.path = "initFreeBSDScript.sh" + end + end + + config.vm.define :freebsd10 do |freebsd10| + freebsd10.vm.box = "freebsd10" +# freebsd10.vm.box_url = "https://wunki.org/files/freebsd-10.0-amd64-wunki.box" + freebsd10.vm.box_url = "http://iris.hosting.lv/freebsd-10.0-i386.box" + freebsd10.vm.provision :shell do |s| + s.args = "freebsd10" + s.path = "initFreeBSDScript.sh" + end + end + + config.vm.define :opensuse12 do |opensuse12| + opensuse12.vm.box = "opensuse12" + opensuse12.vm.box_url = "http://sourceforge.net/projects/opensusevagrant/files/12.3/opensuse-12.3-64.box/download" + opensuse12.vm.provision :shell do |s| + s.args = "opensuse12" + s.path = "initOpenSUSEScript.sh" + end + end + end diff --git a/vagrantSandbox/initFreeBSDScript.sh b/vagrantSandbox/initFreeBSDScript.sh new file mode 100755 index 000000000..0dd703394 --- /dev/null +++ b/vagrantSandbox/initFreeBSDScript.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +boxName=$1 + +echo +echo "Init script for $boxName" +echo + +echo +echo "FreeBSD-specific ended. Now doing general stuff" +echo + +/vagrant/initGeneralScript.sh + +echo +echo "Ended" diff --git a/vagrantSandbox/initOpenSUSEScript.sh b/vagrantSandbox/initOpenSUSEScript.sh new file mode 100755 index 000000000..0dd703394 --- /dev/null +++ b/vagrantSandbox/initOpenSUSEScript.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +boxName=$1 + +echo +echo "Init script for $boxName" +echo + +echo +echo "FreeBSD-specific ended. Now doing general stuff" +echo + +/vagrant/initGeneralScript.sh + +echo +echo "Ended"