Vagrantfile: add ssh port enumbering
This commit is contained in:
parent
d85e4b73ac
commit
3181cd16dd
9
Vagrantfile
vendored
9
Vagrantfile
vendored
@ -21,7 +21,7 @@ boxes = [
|
||||
require "vagrant-#{plugin}"
|
||||
rescue LoadError
|
||||
puts "#{plugin} plugin not installed!"
|
||||
puts "run:"
|
||||
puts "run:"
|
||||
puts "\tvagrant plugin install vagrant-#{plugin}"
|
||||
exit(1)
|
||||
end
|
||||
@ -32,7 +32,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
config.vbguest.auto_reboot = true
|
||||
|
||||
config.vm.provision(:shell){ |shell| shell.path = "script/fix_stdin_error.sh" }
|
||||
#ssh_port = 2222
|
||||
boxes.each do |box|
|
||||
config.vm.define box[:name] do |node|
|
||||
node.vm.provider :virtualbox do |vb|
|
||||
@ -50,12 +49,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
"--macaddress2", box[:mac]]
|
||||
end
|
||||
|
||||
#node.vm.network :forwarded_port,
|
||||
# guest: 22,
|
||||
# host: ssh_port,
|
||||
# id: "ssh",
|
||||
# auto_correct: true
|
||||
#ssh_port += 1
|
||||
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
|
||||
node.vm.hostname = box[:name]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user