Thanks. Perfect.
I found by luck a ticket on when this didn't work...
https://github.com/mitchellh/vagrant/issues/3232
I am uses a file to coordinate the ports so that I can remote into them
with vagrant and do hostname configuration.
ssh_port =
open('../../provisioning/vagrant.ini').grep(/#{config.vm.hostname}/)[0].split(/[=\s]/)[4]
config.vm.network :forwarded_port, guest: 22, host: ssh_port, id: "ssh"
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/fbfcd1b2-8182-4b42-a337-59b33806d3e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.