After some more discussion, we came to the impression that cloud-init should be used for managing the (static or auto-generated) hostname instead of netplan: https://cloudinit.readthedocs.io/en/latest/reference/modules.html#set-hostname
Would that work for you?
If not, should Netplan also be managing /etc/hosts?
After some more discussion, we came to the impression that cloud-init should be used for managing the (static or auto-generated) hostname instead of netplan: https:/ /cloudinit. readthedocs. io/en/latest/ reference/ modules. html#set- hostname
Would that work for you?
If not, should Netplan also be managing /etc/hosts?