1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 14:13:53 +01:00
eoli3n-dotfiles/vagrant/archlinux/Vagrantfile
2017-12-17 21:09:47 +01:00

33 lines
741 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "terrywang/archlinux"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
#vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
config.vm.provision "shell", inline: <<-SHELL
pacman -Syu --noconfirm
pacman -S ansible --noconfirm
pacman -R cowsay --noconfirm || exit 0
SHELL
$script = <<-SCRIPT
git clone --recursive https://github.com/eoli3n/dotfiles
cd dotfiles
git checkout dev
git submodule update --init --recursive
./install.sh desktop
SCRIPT
config.vm.provision "shell", inline: $script, privileged: false
end