lpic-305-306/multivm/Vagrantfile

38 lines
1.1 KiB
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",
2022-05-11 18:03:58 +02:00
path: "https://gitea.adminakademia.pl/adminakademia/lpic-305-306/raw/branch/master/multivm/standard.sh"
2022-05-11 17:43:53 +02:00
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",
2022-05-11 18:03:58 +02:00
path: "https://gitea.adminakademia.pl/adminakademia/lpic-305-306/raw/branch/master/multivm/apachephp.sh"
2022-05-11 17:43:53 +02:00
end
config.vm.define "db" do |db|
2022-05-11 18:03:58 +02:00
db.vm.hostname = "dbsrv"
2022-05-11 17:43:53 +02:00
db.vm.network "private_network", ip: "10.10.0.3"
db.vm.provision "shell",
2022-05-11 18:03:58 +02:00
path: "https://gitea.adminakademia.pl/adminakademia/lpic-305-306/raw/branch/master/multivm/mariadb.sh"
2022-05-11 17:43:53 +02:00
end
end