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