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:
11
proxmox.tf
11
proxmox.tf
@ -35,12 +35,21 @@ resource "proxmox_virtual_environment_file" "cloud_init_yaml" {
|
||||
}
|
||||
|
||||
|
||||
locals {
|
||||
rendered_yaml = templatefile("${path.module}/cloud-init-extra.yaml.tftpl", {
|
||||
# Aqui colocas as variáveis que o template precisa
|
||||
hostname = "vm-k8s"
|
||||
fqdn = "vm-k8s.local"
|
||||
# Adiciona mais conforme necessário
|
||||
})
|
||||
}
|
||||
|
||||
data "external" "merged_yaml" {
|
||||
program = ["python3", "${path.module}/merge_yaml.py"]
|
||||
|
||||
query = {
|
||||
file1 = "${path.module}/cloud-init-base.yaml"
|
||||
file2 = "${path.module}/cloud-init-extra.yaml"
|
||||
file2 = local.rendered_yaml
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user