]> git.proxmox.com Git - qemu-server.git/commit
cloudinit: pass through hostname via fqdn field
authorLeo Nunner <l.nunner@proxmox.com>
Tue, 23 May 2023 07:14:19 +0000 (09:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jun 2023 17:33:28 +0000 (19:33 +0200)
commit3e546c5ada47da8434bb58d27a3aa7d9823e7fa4
tree0fad235b6292eae5d8cb7b3393ebffdb1203614c
parent606d9d76b25c533f15d589d4927015c8e3d78a1b
cloudinit: pass through hostname via fqdn field

If no FQDN is provided, we simply set it to the current hostname. This
ensures that the hostname *really* gets set, since we encountered an
issue on Fedora and CentOS based systems where no hostname got set at
all.

When there's no FQDN set in the cloudinit config, this leads to the
following entry:

    127.0.1.1 <hostname> <hostname>

Which doesn't seem to cause any issues.

Tested on:
 - Ubuntu 23.04
 - CentOS 8
 - Fedora 38
 - Debian 11
 - SUSE 15.4

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
PVE/QemuServer/Cloudinit.pm