/etc/hosts on a Vagrant multi machine setup -


i'm working on getting cluster bidding , must know each other. i'm missing way of putting ip/name pairs in /etc/hosts how do during provisioning phase?

i can machine a's ip address when provisioning machine a, ip address given machine b?

after 'vagrant up' can run script on host finds each machines ip address , updates /etc/hosts files little awkward. there more elegant solution?

if ip addresses of machines fixed write provisioning script adds correct entries /etc/hosts. if addresses not known until boot has determined each of vms , fed provisioning script. finally, the provisioning script run vms.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -