mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Update proxmox.tf
This commit is contained in:
@ -38,12 +38,7 @@ resource "proxmox_virtual_environment_file" "cloud_init_yaml" {
|
||||
locals {
|
||||
rendered_yaml_per_vm ={
|
||||
for vm in var.proxmox_k8s_vms : vm.name =>
|
||||
templatefile("${path.module}/cloud-init-vm.yaml.tftpl", {
|
||||
# Aqui colocas as variáveis que o template precisa
|
||||
hostname = "vm-k8s"
|
||||
fqdn = "vm-k8s.local"
|
||||
# Adiciona mais conforme necessário
|
||||
})
|
||||
templatefile("${path.module}/cloud-init-vm.yaml.tftpl", vm)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user