-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathVagrantfile
41 lines (35 loc) · 1.37 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
39
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/jammy64"
# networking
config.vm.network "public_network"
config.vm.hostname = "xbmc-video-server"
# memory usage
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
# synced folder
config.vm.synced_folder "./", "/vagrant",
owner: "vagrant",
group: "www-data",
mount_options: ["dmode=775,fmode=664"]
# provisioning
config.vm.provision "shell", path: "provisioning/01-configure-system.sh",
name: "01 - Configure system"
config.vm.provision "shell", path: "provisioning/02-install-system-packages.sh",
name: "02 - Install and update system packages"
config.vm.provision "shell", path: "provisioning/03-install-npm-dependencies.sh",
name: "03 - Install npm dependencies"
config.vm.provision "shell", path: "provisioning/04-configure-web-servers.sh",
name: "04 - Configure web servers"
config.vm.provision "shell", path: "provisioning/05-configure-xbmc-video-server.sh",
name: "05 - Configure XBMC Video Server"
# recurring provisioning
config.vm.provision "shell", path: "provisioning/98-perform-post-update-tasks.sh",
name: "98 - Perform any post-update tasks",
run: "always"
config.vm.provision "shell", path: "provisioning/99-print-information.sh",
name: "99 - Show information",
run: "always"
end