mirror of
https://github.com/eoli3n/dotfiles
synced 2024-12-04 17:28:14 +01:00
37 lines
808 B
Ruby
37 lines
808 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = "centos/7"
|
|
|
|
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.name = "centos_dotfiles"
|
|
vb.memory = "1024"
|
|
vb.cpus = 2
|
|
end
|
|
|
|
config.vm.provision "shell", inline: <<-SHELL
|
|
yum install ansible git -y
|
|
SHELL
|
|
|
|
$script = <<-SCRIPT
|
|
# PREP
|
|
touch ~/.viminfo; rm ~/.viminfo
|
|
touch ~/.vimrc; rm ~/.vimrc
|
|
# EXEC
|
|
git clone --recursive https://github.com/eoli3n/dotfiles
|
|
cd dotfiles
|
|
git submodule update --init --recursive
|
|
./install.sh desktop
|
|
echo -e "vagrant\n/usr/bin/zsh" | chsh
|
|
SCRIPT
|
|
|
|
config.vm.provision "shell", inline: $script, privileged: false
|
|
end
|