Vagrantfile: add ssh port enumbering

This commit is contained in:
Jörg Thalheim 2014-03-16 06:39:37 +01:00
parent d85e4b73ac
commit 3181cd16dd
1 changed files with 1 additions and 8 deletions

7
Vagrantfile vendored
View File

@ -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]