For a poor man's solution you could probably get away with the combination of vagrant-triggers [0] plus something like `vagrant ssh vm1 -c "ifconfig eth1 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}'"`
HTH, Torben [0] https://github.com/emyl/vagrant-triggers On Wed, Dec 31, 2014 at 4:47 PM, Terrance Shepherd <tscana...@gmail.com> wrote: > Simply but no. But not entirely. Most solutions would have to happen either > statically or dynamically. > > Solutions: > 1) use static ip on a private network, pros easy and all in vagrant. cons no > public access to the servers. Only you can get to it. > 2) use a service discovery with tools like chef server or hashicorp's consul > > On Tue, Dec 30, 2014 at 10:47 PM, Taylor Leese <tlees...@gmail.com> wrote: >> >> Hi all - >> >> The Vagrant documentation states below (see >> https://docs.vagrantup.com/v2/networking/public_network.html): >> >> "When DHCP is used, the IP can be determined by using vagrant ssh to SSH >> into the machine and using the appropriate command line tool to find the IP, >> such as ifconfig." >> >> However, this requires waiting until provisioning is complete in order to >> determine the IP address of the provisioned node. Is there any way to >> determine the IP address of a node during provisioning? For example, I'd >> like to find out the IP address of a "master" node that I then use to >> configure various "child" nodes via the Vagrantfile. Is this possible? >> >> - Taylor >> >> -- >> 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 vagrant-up+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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 vagrant-up+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 vagrant-up+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.