hostname not set using cloud init snippet #1666
-
Hi. I have been testing this provider to spin up vms with opentofu. i have created a proxmox_virtual_environment_file with a custom cloud init file inside and it works to spin up the vms the way i want. but i cannot figure out how the hostname is set? i am using a cloud image from ubuntu and hostname defaults to ubuntu even if i set the vm name in proxmox to something else. I am using one snippet file to spin up all vms so i cannot set something static there. below is the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you might just be missing the 'hostname:' parameter in your yaml, here is my default cloud-init snippet. The line
|
Beta Was this translation helpful? Give feedback.
I think you might just be missing the 'hostname:' parameter in your yaml, here is my default cloud-init snippet. The line
hostname: ${var.instance.name}.local
sets the name.