Files
terraform/proxmox/talos/resources_proxmox.tf
T

31 lines
937 B
Terraform
Raw Normal View History

2026-09-01 17:31:47 -04:00
resource "proxmox_virtual_environment_file" "talos_iso" {
for_each = data.proxmox_virtual_environment_node.hvc01
content_type = "iso"
datastore_id = "local"
node_name = each.value.id
overwrite = false
source_file {
# checksum =
file_name = "talos_${local.talos_version}.iso"
insecure = false
min_tls = "1.2"
path = data.talos_image_factory_urls.this.urls.iso_secureboot
}
timeout_upload = 120
# upload_mode = # N/A, has no effect when content_type = iso
2026-09-03 00:35:34 -04:00
}
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"
2026-09-03 18:13:21 -04:00
node_name = each.value.host
2026-09-03 00:35:34 -04:00
overwrite = true
source_raw {
2026-09-08 00:15:03 -04:00
data = local.machine_configs[each.key]
2026-09-03 00:35:34 -04:00
file_name = "cloud_init_${each.key}.yml"
}
timeout_upload = 10
upload_mode = "stream"
2026-09-08 00:15:03 -04:00
}