lpic-305-306/multivm/Vagrantfile

38 lines
861 B
Ruby
Raw Normal View History

2022-05-11 17:43:53 +02:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.box_check_update = false
config.vm.provision "shell",
path: "standard.sh"
config.vm.define "web" do |web|
web.vm.hostname = "websrv"
web.vm.network "forwarded_port", guest: 80, host: 8080
web.vm.network "private_network", ip: "10.10.0.2"
web.vm.provision "shell",
path: "apachephp.sh"
end
config.vm.define "db" do |db|
db.vm.hostname = "websrv"
db.vm.network "private_network", ip: "10.10.0.3"
db.vm.provision "shell",
path: "mariadb.sh"
end
end