[vagrant] explicitly set ssh ports for each machine
This commit is contained in:
parent
74e978886c
commit
9ed52d9764
1 changed files with 4 additions and 0 deletions
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue