Vagrantfile: add ssh port enumbering
This commit is contained in:
parent
d85e4b73ac
commit
3181cd16dd
7
Vagrantfile
vendored
7
Vagrantfile
vendored
@ -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