fix: cloud-init config file is now named with the VM hostname

This commit is contained in:
2025-07-16 08:44:43 +00:00
parent 3a991010d5
commit b73837c028

View File

@@ -13,7 +13,7 @@ resource "proxmox_virtual_environment_file" "cloud_config" {
node_name = var.node_name # The Proxmox node where the file will be uploaded node_name = var.node_name # The Proxmox node where the file will be uploaded
source_raw { source_raw {
file_name = "vm.cloud-config.yaml" # The name of the snippet file file_name = "${var.vm_name}.cloud-config.yaml" # The name of the snippet file
data = <<-EOF data = <<-EOF
#cloud-config #cloud-config
hostname: ${var.vm_name} hostname: ${var.vm_name}