Adaption to new boxes available on vagrantcloud.com (use vagrant 1.5)

This commit is contained in:
Bernhard Gschaider 2014-03-13 17:52:52 +01:00
parent a7d9a55024
commit 240d710a6e
4 changed files with 52 additions and 25 deletions

View file

@ -3,7 +3,10 @@
* Prerequisites * Prerequisites
These virtual machines require These virtual machines require
- VirtualBox :: for running from [[https://www.virtualbox.org]] - VirtualBox :: for running from [[https://www.virtualbox.org]]
- Vagrant :: to automatically set them up from [[http://www.vagrantup.com]] - Vagrant :: to automatically set them up from
[[http://www.vagrantup.com]] Make sure that you have at
least version 1.5 to be able to use the base boxes from
https://vagrantcloud.com/
To make sure that for the boxes the have the newest To make sure that for the boxes the have the newest
VirtualBox-additions do VirtualBox-additions do
: vagrant plugin install vagrant-vbguest : vagrant plugin install vagrant-vbguest
@ -31,7 +34,7 @@
doing doing
* Virtual machines * Virtual machines
Currently existing virtual machines are Currently existing virtual machines are
- precise :: Latest LTS Ubuntu. - precise :: Latest LTS Ubuntu. Currently the default machine to use
- lucid :: Previous LTS Ubuntu. Currently problems - lucid :: Previous LTS Ubuntu. Currently problems
with automatic setting up (something with the with automatic setting up (something with the
=postfix=-package) =postfix=-package)
@ -39,8 +42,13 @@
=lucid=-machine. Not yet working =lucid=-machine. Not yet working
- centos65 :: A CentOS 6.5 machine with preinstalled development - centos65 :: A CentOS 6.5 machine with preinstalled development
tools tools
- freebsd92 :: FreeBSD 9.2 32-bit machine. Does not work because - freebsd92 :: FreeBSD 9.2 64-bit machine. Currently this machine
FreeBSD does not support shared folders does not provision automatically. After the first
failure log in and do
: sudo pkg_add -r rsync
: sudo pkg_add -r bash
then halt the machine and bring it up again (with the
=--provision=-option)
- freebsd10 :: FreeBSD 10.0 32-big machine. Tries to set up shared - freebsd10 :: FreeBSD 10.0 32-big machine. Tries to set up shared
folders via NFS. Currently not working folders via NFS. Currently not working
- opensuse12 :: OpenSUSE 12.3 machine. Currently not completely - opensuse12 :: OpenSUSE 12.3 machine. Currently not completely

View file

@ -12,6 +12,28 @@ Vagrant.configure("2") do |config|
vb.customize ["modifyvm", :id, "--memory", "1024"] vb.customize ["modifyvm", :id, "--memory", "1024"]
end end
# default
config.vm.define :precise do |precise|
precise.vm.box = "hashicorp/precise64"
precise.vm.box_check_update = true
# precise.vm.box_url = "http://files.vagrantup.com/precise64.box"
precise.vm.provision :shell do |s|
s.args = "precise"
s.path = "initUbunutuScript.sh"
end
end
config.vm.define :centos65 do |centos65|
centos65.vm.box = "chef/centos-6.5"
centos65.vm.box_check_update = true
# 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
# legacy
config.vm.define :lucid do |lucid| config.vm.define :lucid do |lucid|
lucid.vm.box = "lucid64" lucid.vm.box = "lucid64"
lucid.vm.box_url = "http://files.vagrantup.com/lucid64.box" lucid.vm.box_url = "http://files.vagrantup.com/lucid64.box"
@ -21,6 +43,7 @@ Vagrant.configure("2") do |config|
end end
end end
#legacy
config.vm.define :maverick do |maverick| config.vm.define :maverick do |maverick|
maverick.vm.box = "maverick64" maverick.vm.box = "maverick64"
maverick.vm.box_url = "http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box" maverick.vm.box_url = "http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box"
@ -30,34 +53,21 @@ Vagrant.configure("2") do |config|
end end
end end
config.vm.define :precise do |precise| # experimental
precise.vm.box = "precise64"
precise.vm.box_url = "http://files.vagrantup.com/precise64.box"
precise.vm.provision :shell do |s|
s.args = "precise"
s.path = "initUbunutuScript.sh"
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
config.vm.define :freebsd92 do |freebsd92| config.vm.define :freebsd92 do |freebsd92|
freebsd92.vm.box = "freebsd92" freebsd92.vm.box = "chef/freebsd-9.2"
freebsd92.vm.box_check_update = true
# freebsd92.vm.box_url = "https://wunki.org/files/freebsd-9.2-amd64-wunki.box" # 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.box_url = "http://iris.hosting.lv/freebsd-9.2-i386.box"
freebsd92.vm.provision :shell do |s| freebsd92.vm.provision :shell do |s|
s.args = "freebsd92" s.args = "freebsd92"
s.path = "initFreeBSDScript.sh" s.path = "initFreeBSDScript.sh"
end end
freebsd92.vm.synced_folder "..", "/FOAM-sources", type: "rsync", rsync__exclude: "vagrantSandbox/"
freebsd92.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: "ccache4vm/"
end end
# legacy/experimental
config.vm.define :freebsd10 do |freebsd10| config.vm.define :freebsd10 do |freebsd10|
freebsd10.vm.box = "freebsd10" freebsd10.vm.box = "freebsd10"
# freebsd10.vm.box_url = "https://wunki.org/files/freebsd-10.0-amd64-wunki.box" # freebsd10.vm.box_url = "https://wunki.org/files/freebsd-10.0-amd64-wunki.box"
@ -78,6 +88,7 @@ Vagrant.configure("2") do |config|
freebsd10.vm.synced_folder "..", "/FOAM-sources", :nfs => true freebsd10.vm.synced_folder "..", "/FOAM-sources", :nfs => true
end end
# legacy
config.vm.define :opensuse12 do |opensuse12| config.vm.define :opensuse12 do |opensuse12|
opensuse12.vm.box = "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.box_url = "http://sourceforge.net/projects/opensusevagrant/files/12.3/opensuse-12.3-64.box/download"

View file

@ -6,9 +6,12 @@ echo
echo "Init script for $boxName" echo "Init script for $boxName"
echo echo
echo "Install the EPEL-repository for additional software"
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# some of these packages are already installed. But lets be sure # some of these packages are already installed. But lets be sure
neededPackages=(gcc-g++ mercurial git flex bison make ccache rpm-build wget zlib-devel binutils-devel) neededPackages=(gcc-c++ gcc-gfortran mercurial git flex bison make ccache rpm-build wget zlib-devel binutils-devel)
bonusPackages=(emacs csh tcsh zsh) bonusPackages=(emacs csh tcsh zsh)
for p in ${neededPackages[@]}; do for p in ${neededPackages[@]}; do

View file

@ -37,8 +37,12 @@ then
then then
echo echo
echo "Parent is git" echo "Parent is git"
echo "Cloning. This may take some time"
echo echo
# su -c not correctly working on FreeBSD
su vagrant - -c "git clone $OFParent $OFClone" su vagrant - -c "git clone $OFParent $OFClone"
echo echo
echo "Git cloned: TODO: set same branch as parent" echo "Git cloned: TODO: set same branch as parent"
echo echo
@ -52,6 +56,7 @@ then
# sed removes + in case of a 'tainted' parent # sed removes + in case of a 'tainted' parent
echo "Parent is on id $idName" echo "Parent is on id $idName"
echo "Cloning. This may take some time"
su vagrant - -c "hg clone -u $idName $OFParent $OFClone" su vagrant - -c "hg clone -u $idName $OFParent $OFClone"
echo echo
else else