-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathVagrantfile
52 lines (39 loc) · 1.51 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
42
43
44
45
46
47
48
49
50
51
52
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.hostname = "servidor.local"
config.vm.network "private_network",
ip: "192.168.58.100"
if Vagrant.has_plugin?("vagrant-hostmanager")
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
end
config.vm.provider "virtualbox" do |vb|
vb.name = "servidor-dev"
vb.linked_clone = true
vb.memory = "1024"
end
config.vm.provision "user", type: "shell", run: "never" do |s|
s.inline = "useradd -b /var -UG www-data -s /usr/sbin/nologin --system servidor && echo 'User added!'"
end
config.vm.provision "installer",
path: "setup.sh", args: "-v",
type: "shell", run: "never"
config.vm.synced_folder ".", "/vagrant",
disabled: true
config.vm.synced_folder ".", "/var/servidor",
create: true, owner: "servidor", group: "servidor",
mount_options: ["dmode=775,fmode=664"]
config.vm.synced_folder "./storage", "/var/servidor/storage",
create: false, owner: "servidor", group: "www-data",
mount_options: ["dmode=770,fmode=660"]
config.vm.synced_folder "./resources/test-skel",
"/var/servidor/resources/test-skel",
create: false, owner: "www-data", group: "www-data",
mount_options: ["dmode=775,fmode=664"]
config.vm.synced_folder "./resources/test-skel/protected",
"/var/servidor/resources/test-skel/protected",
create: false, owner: "vagrant", group: "vagrant",
mount_options: ["dmode=775,fmode=600"]
end