Merge pull request 'Update proxmox.tf' (#204) from fenix-admin into main

Reviewed-on: fenix-gitea-admin/iac-teste#204
This commit is contained in:
2025-08-27 23:40:14 +00:00

View File

@ -162,12 +162,6 @@ resource "proxmox_virtual_environment_vm" "k8s_vms" {
size = each.value.disk_size
interface = "scsi1"
}
disk {
datastore_id = "local-snippets"
file_id = proxmox_virtual_environment_file.vm_user_data[each.key].id
interface = "ide2"
file_format = "raw"
}
clone {
vm_id = proxmox_virtual_environment_vm.proxmox-kubernetes-VM-template.id
@ -192,6 +186,9 @@ initialization {
user_data_file_id = proxmox_virtual_environment_file.vm_user_data[each.key].id
}
customization {
cicustom = "user=local-snippets:snippets/cloud-init-iac-k8s-${each.key}.yaml"
}
agent {
enabled = true