Which version of juju are you using? In 2.3.1, a model config option was added to add custom cloud-init sections for advanced usage (and to all us to work around situations like this).
Some config could be added to the model that would get cloud-init to reboot once it has finished processing, that would allow the machine to come up with the right hostname.
Which version of juju are you using? In 2.3.1, a model config option was added to add custom cloud-init sections for advanced usage (and to all us to work around situations like this).
Some config could be added to the model that would get cloud-init to reboot once it has finished processing, that would allow the machine to come up with the right hostname.