Ask Your Question

Revision history [back]

Using user data, you could send the instance name to a shell script that runs on the instance and sets the hostname at boot time. See e.g. https://docs.openstack.org/developer/heat/template_guide/software_deployment.html#user-data-boot-scripts-and-cloud-init.

Using user data, you could send the instance name to a shell script that runs on the instance and sets the hostname at boot time. See e.g. https://docs.openstack.org/developer/heat/template_guide/software_deployment.html#user-data-boot-scripts-and-cloud-init.

Or use cloud-init to set the hostname directly.