Add ArchLinux vagrant-machine. Not yet tested

This commit is contained in:
Bernhard Gschaider 2014-11-13 16:52:09 +01:00 committed by Dominik Christ
parent d1779cf0d9
commit 43d54db667
4 changed files with 54 additions and 0 deletions

View file

@ -72,6 +72,9 @@
compiling Foam compiling Foam
- opensuse13 :: OpenSUSE 13.1 machine. The current LTS-version of - opensuse13 :: OpenSUSE 13.1 machine. The current LTS-version of
OpenSUSE OpenSUSE
- archlinux :: An ArchLinux-machine. Might take a long time during
provisioning as the script updated the full
OS.
Some machines (read: the BSD-boxes) need the =VirtualBox Extension Some machines (read: the BSD-boxes) need the =VirtualBox Extension
Pack= installed (because they have USB 2.0) Pack= installed (because they have USB 2.0)
* Scripts in the machine * Scripts in the machine

View file

@ -154,4 +154,14 @@ Vagrant.configure("2") do |config|
opensuse13.vm.hostname="opensuse13."+config.vm.hostname opensuse13.vm.hostname="opensuse13."+config.vm.hostname
end end
config.vm.define :archlinux do |archlinux|
archlinux.vm.box = "terrywang/archlinux"
archlinux.vm.box_check_update = true
archlinux.vm.provision :shell do |s|
s.args = "archlinux"
s.path = "initArchlinuxScript.sh"
end
archlinux.vm.hostname="archlinux."+config.vm.hostname
end
end end

View file

@ -0,0 +1,40 @@
#! /bin/bash
boxName=$1
echo
echo "Init script for $boxName"
echo
echo
echo "Full update of the system"
echo
pacman -Syu
yaourt --noconfirm -S rpm-org
neededPackages=(gcc-fortran ccache mercurial bison flex git )
bonusPackages=(emacs tcsh)
thirdpartyPackages=(openmpi cmake hwloc)
for p in ${neededPackages[@]}; do
pacman --noconfirm -S $p
done
for p in ${bonusPackages[@]}; do
pacman --noconfirm -S $p
done
for p in ${thirdpartyPackages[@]}; do
pacman --noconfirm -S $p
done
echo
echo "Archlinux-specific ended. Now doing general stuff"
echo
/vagrant/initGeneralScript.sh
echo
echo "Ended"

View file

@ -12,6 +12,7 @@ do
else else
echo "Copying $target from skeleton" echo "Copying $target from skeleton"
cp -r "/vagrant/skel/$f" $target cp -r "/vagrant/skel/$f" $target
chown -R vagrant:vagrant $target
fi fi
done done