Improvements to hostname support

Bug #2032662 reported by Lukas Märdian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Triaged
Wishlist
Unassigned

Bug Description

The Netplan hostname directives ("hostname", "use-hostname", and "send-hostname") are currently only supported by the systemd-networkd renderer.

Since many Ubuntu Core customers end up using the network-manager snap, it would make sense to enhance the network-manager renderer to support the same options.

In addition, Netplan currently lacks support for setting the static hostname (i.e. writing the hostname to /etc/hostname) which is supported by NetworkManager (see nmcli hostname).

Finally, it would be nice to have a way to specify via Netplan that an auto-generated hostname should be configured (e.g. using UUIDs or similar to how LXD auto-generates container names).

See also: FIEL-169 & FIEL-170

Tags: fr-5663
Lukas Märdian (slyon)
Changed in netplan:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Lukas Märdian (slyon) wrote :

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?

Lukas Märdian (slyon)
tags: added: fr-5663
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.