Split project
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
|
||||
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.host
|
||||
overwrite = true
|
||||
source_raw {
|
||||
data = local.machine_configs[each.key]
|
||||
file_name = "cloud_init_${each.key}.yml"
|
||||
}
|
||||
timeout_upload = 10
|
||||
upload_mode = "stream"
|
||||
}
|
||||
Reference in New Issue
Block a user