proxmox/cloud-init newbie here. I've spent all day getting Terraform setup with the Telmate proxmox provider. However I wanted to go a step further and get the qemu-guest-agent installed and started right away as well. I saw the cleanest way to do that was to use a cicustom yaml file to tell it to install the package and then run the commands to enable/start it. This works great, however I noticed when I changed my Terraform to use `cicustom` instead of the previous case of just specifying `ciuser` etc, that the hostname of the VM is just `ubuntu`, whereas before it had been set to match the name of the VM as specified in my Terraform `"proxmox_vm_qemu.name` value.
The reason this is bugging me is that I'm deploying a cluster and have each node suffixed with its cluster index (eg node-01, node-02, etc). I can set a static hostname in the cicustom yaml file but that's not really any better, I'd really like to having those index values in the hostname like I did before.
I tried setting `preserve_hostname: true` in the cicustom file but that had no change that I could see.
The reason this is bugging me is that I'm deploying a cluster and have each node suffixed with its cluster index (eg node-01, node-02, etc). I can set a static hostname in the cicustom yaml file but that's not really any better, I'd really like to having those index values in the hostname like I did before.
I tried setting `preserve_hostname: true` in the cicustom file but that had no change that I could see.