This commit is contained in:
2026-09-03 00:35:34 -04:00
parent af8dcaec06
commit fafc013896
16 changed files with 187 additions and 139 deletions
+16
View File
@@ -13,6 +13,8 @@
# upload_mode = "stream"
# }
resource "proxmox_virtual_environment_file" "talos_iso" {
for_each = data.proxmox_virtual_environment_node.hvc01
content_type = "iso"
@@ -28,4 +30,18 @@ resource "proxmox_virtual_environment_file" "talos_iso" {
}
timeout_upload = 120
# upload_mode = # N/A, has no effect when content_type = iso
}
resource "proxmox_virtual_environment_file" "talos_cloud_init" {
for_each = { for guest in var.vm_guests: guest.name => guest if contains(["controlplane", "worker"], guest.role) }
content_type = "snippets"
datastore_id = "local"
node_name = each.value.node
overwrite = true
source_raw {
data = data.talos_machine_configuration.this[each.key].machine_configuration
file_name = "cloud_init_${each.key}.yml"
}
timeout_upload = 10
upload_mode = "stream"
}