-
Notifications
You must be signed in to change notification settings - Fork 62
/
Vagrantfile
38 lines (30 loc) · 1.2 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
module OS
def OS.windows?
(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :secretsanta do |secretsanta_config|
secretsanta_config.vm.box = "Intracto/Debian11"
secretsanta_config.vm.provider "virtualbox" do |v|
# show a display for easy debugging
v.gui = false
# RAM size
v.memory = 2048
# Allow symlinks on the shared folder
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
# Shared folder over NFS unless Windows
if OS.windows?
secretsanta_config.vm.synced_folder ".", "/vagrant"
else
secretsanta_config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ['rw', 'vers=3', 'tcp', 'fsc', 'nolock', 'actimeo=2']
end
secretsanta_config.vm.network "private_network", ip: "192.168.33.50"
# Shell provisioning
secretsanta_config.vm.provision :shell, :path => "shell_provisioner/run.sh"
end
end