-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
32 lines (23 loc) · 1.17 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
unless Vagrant.has_plugin?("vagrant-reload")
raise 'Install vagrant-reload "vagrant plugin install vagrant-reload"'
end
Vagrant.configure("2") do |config|
config.vm.box = "archlinux/archlinux"
config.vm.hostname = "lsdp-l2"
config.vm.network :private_network, ip: "10.0.0.2"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 8081, host: 8081
config.vm.synced_folder "project/", "/project", mount_options: ["dmode=777,fmode=777"] #who cares
config.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/playbook.yml"
ansible.verbose = true
end
config.vm.provision :reload
# Shell scripts for Vagrant provisioning if you have problems with Ansible
# config.vm.provision "update", type: "shell", path: "shell/update.sh"
# config.vm.provision :reload
# config.vm.provision "yay-build", type: "shell", path: "shell/build_yay.sh", privileged: false
# config.vm.provision "yay-install", type: "shell", path: "shell/install_yay.sh"
# config.vm.provision "install-apps", type: "shell", path: "shell/install_apps.sh"
# config.vm.provision "notebook", type: "shell", path: "shell/notebook.sh"
end