mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-11-03 20:52:14 +00:00
cloud-init: add manage_etc_hosts to cloud init config
so that we get the hostname there (e.g. sudo complains that it cannot resolve the hostname) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
9a6ccb12ef
commit
8de34458ea
@ -103,6 +103,7 @@ sub cloudinit_userdata {
|
||||
my $content = "#cloud-config\n";
|
||||
|
||||
$content .= "hostname: $hostname\n";
|
||||
$content .= "manage_etc_hosts: true\n";
|
||||
$content .= "fqdn: $fqdn\n" if defined($fqdn);
|
||||
|
||||
my $username = $conf->{ciuser};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user