[Openstack] How to update /etc/hosts file for VM

Farhan Patwa Farhan.Patwa at utsa.edu
Thu May 9 19:07:32 UTC 2013


Hello,
I just got Folsom installed and everything works fine.

I now want the /etc/hosts file in the VM (am using ubuntu as an example)
to have a mapping of hostname to floating IP address.
Is there a way to automate that using user-data/metadata and cloud-init?

Of course it works manually but I don't want to require a manual update of
/etc/hosts file for any new VM created.

Thanks,

-Farhan.






More information about the Openstack mailing list