Files
terraform/modules/apps/gateway/main.tf
JulienAldon 1de2fe9ab4 Add common module managing common services and scripts (act_runner, create/restore backups)
Fix script environment variables
Add Fefan configuration
Fix gateway services file provisionning through ssh
2026-01-20 15:42:17 +01:00

32 lines
988 B
HCL

module "vm" {
source = "../../vm"
name = var.name
hostname = var.hostname
domain = var.domain
vm_id = var.vm_id
node_name = var.node_name
vm_ip_address = var.vm_ip_address
template_id = var.template_id
cores = var.cores
memory = var.memory
disk_size = var.disk_size
ssh_public_key = var.ssh_public_key
proxmox_host_ip = var.proxmox_host_ip
cloudinit_config = templatefile(
"${path.module}/cloud-init/service.yaml",
{
hostname = var.hostname
domain = var.domain
ssh_key = var.ssh_public_key
proxmox_host_ip = var.proxmox_host_ip
traefik-service = indent(6, file("${path.module}/lib/services/traefik.service"))
install-traefik-script = indent(6, file("${path.module}/lib/scripts/install-traefik.sh"))
env-file-content = indent(6, file("${path.module}/.env"))
}
)
}