Hello,
I would like to be able to detect the port redirection that gets used (i.e. 
after collisions are resolved) within my vagrant file so that I can pass 
the port information into a provisioning step.
Is such a thing possible.

Let me explain why I want to do this:
I am spinning up a VM for Wordpress development, and the wordpress instance 
needs to know the port, so that the site_url can include it. (for example: 
localhost:8888)
Since the port could collide and vagrant will choose another port, I would 
like to be able to retrieve this port, and then pass it to a provisioning 
step, so that the wordpress
instance in the guest os can be updated to "know" the new port.

Does anyone have some advice on this topic? All ideas welcome.

Thanks,
John Schank

-- 
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/ef66ae69-f665-4d57-b1c9-0ba532fca7a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to