.
This commit is contained in:
37
multivm/Vagrantfile
vendored
Normal file
37
multivm/Vagrantfile
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# -*- 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
|
Reference in New Issue
Block a user