/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
Post a Comment