-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVagrantfile
31 lines (23 loc) · 994 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
config.vm.network "forwarded_port", guest: 80, host: 8080
# Disable default shared folder as it's causing me problems on my Fedora
# host. We don't need it.
config.vm.synced_folder ".", "/vagrant", disabled: true
# Not sure if OS X hosts also use libvirt. Probably VirtualBox.
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 4
libvirt.memory = 12288 # 12GB
end
# Run `ansible provision` to install digitransit in Ansible
config.vm.provision "ansible" do |ansible|
ansible.playbook = "digitransit.yml"
ansible.compatibility_mode = "2.0"
end
end