[vagrant] explicitly set ssh ports for each machine

This commit is contained in:
bronsen 2025-03-03 22:54:02 +01:00
parent 74e978886c
commit 9ed52d9764

4
Vagrantfile vendored
View file

@ -11,16 +11,19 @@ Vagrant.configure("2") do |config|
config.vm.define "app1" do |app|
app.vm.hostname = "orc-app1.test"
app.vm.network :private_network, ip: "192.168.60.4"
app.vm.network :forwarded_port, guest: 22, host: 2222, id: 'ssh'
end
config.vm.define "app2" do |app|
app.vm.hostname = "orc-app2.test"
app.vm.network :private_network, ip: "192.168.60.5"
app.vm.network :forwarded_port, guest: 22, host: 2200, id: 'ssh'
end
config.vm.define "db" do |db|
db.vm.hostname = "orc-db.test"
db.vm.network :private_network, ip: "192.168.60.6"
db.vm.network :forwarded_port, guest: 22, host: 2201, id: 'ssh'
end
end
@ -37,5 +40,6 @@ Vagrant.configure("2") do |config|
config.vm.define "deb" do |app|
app.vm.hostname = "deb.test"
app.vm.network :private_network, ip: "192.168.60.7"
app.vm.network :forwarded_port, guest: 22, host: 2202, id: 'ssh'
end
end