-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
35 lines (27 loc) · 946 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Box Settings
# Define base image of the machine
config.vm.box = "ubuntu/focal64"
# Provider Settings
# Use virtualbox as a VM provider
config.vm.provider "virtualbox" do |vb|
# Fix SSH timeout
vb.customize ["modifyvm", :id, "--uart1", "0x3F8", "4"]
vb.customize ["modifyvm", :id, "--uartmode1", "file", File::NULL]
# Virtual machine resources
vb.memory = 2048
vb.cpus = 2
# Virtual machine name
vb.name = "week-1-assignments-huyagci"
end
# Synced Folder Settings
# Mount specified paths to host machine
config.vm.synced_folder "./shared/scripts", "/opt/scripts"
config.vm.synced_folder "./shared/backups", "/mnt/backups"
config.vm.synced_folder "./shared/logs", "/tmp/logs"
# Provision Settings
# Execute given script on boot
config.vm.provision "shell", path: "./shared/scripts/bootstrap.sh"
end