Is there any way to retrieve information about hosts spawned by a Vagrant 
process, while still within the Ruby process executing the Vagrantfile?

I'm using Vagrant in conjunction with the vagrant-google plugin 
<https://github.com/mitchellh/vagrant-google> to spin up a series of hosts 
within Google Cloud Engine. GCE assigns each host an IP address, and I need 
to reference the full list of IP addresses (for all hosts) in 
configurations created by subsequent provisioning steps on each host. I 
considered trying to scrape output from ifconfig as executed by the shell 
provisioner, but I cannot find a way to get the shell provisioner to return 
output or return values back to the Vagrantfile process.

Any suggestions are appreciated; if Vagrant is the wrong tool for what I'm 
describing, please advise if you can suggest a more appropriate one (or a 
plugin).


*(cross-posted to Stack Overflow: 
http://stackoverflow.com/questions/25333099/retrieving-information-about-vagrant-spawned-hosts-from-within-vagrantfile-execu
 
<http://stackoverflow.com/questions/25333099/retrieving-information-about-vagrant-spawned-hosts-from-within-vagrantfile-execu>)*

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to