# -*- 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: "https://gitea.adminakademia.pl/adminakademia/lpic-305-306/raw/branch/master/multivm/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: "https://gitea.adminakademia.pl/adminakademia/lpic-305-306/raw/branch/master/multivm/apachephp.sh"

  end


  config.vm.define "db" do |db|
    db.vm.hostname = "dbsrv"
    db.vm.network "private_network", ip: "10.10.0.3"
    db.vm.provision "shell",
      path: "https://gitea.adminakademia.pl/adminakademia/lpic-305-306/raw/branch/master/multivm/mariadb.sh"

  end
  
  

end
