1 Vagrant.configure("2") do |config|
2 config.vm.box = "debian/stretch64"
4 config.vm.provider "virtualbox" do |v|
8 # online deployment: needed to assign a fixed ip.
9 if File.exist?(".online")
10 config.vm.network "public_network", adapter: 2, type: "dhcp", mac: "080808080808"
14 config.vm.provider "libvirt" do |v|
17 config.vm.synced_folder ".", "/vagrant", type: "rsync"
20 # design-choice: run file in vm.
21 config.vm.provision "shell", inline: "/vagrant/provision.sh"
23 config.vm.network "forwarded_port", adapter: 1, guest: 8080, host: 8080
25 # only for debugging reasons?
26 config.vm.network "forwarded_port", adapter: 1, guest: 8081, host: 8081
27 config.vm.network "forwarded_port", adapter: 1, guest: 8082, host: 8082
28 config.vm.network "forwarded_port", adapter: 1, guest: 8083, host: 8083
29 config.vm.network "forwarded_port", adapter: 1, guest: 8084, host: 8084
30 config.vm.network "forwarded_port", adapter: 1, guest: 8085, host: 8085