Add base terraform config

This commit is contained in:
2026-09-08 12:23:37 +02:00
parent a56911b896
commit 98793acc62
30 changed files with 255 additions and 886 deletions

50
main.tf
View File

@@ -29,7 +29,7 @@ locals {
}
resource "local_file" "traefik_config" {
filename = "${path.module}/services.yml"
filename = "${path.module}/gateway/lib/scripts/services.yml"
content = templatefile("${path.module}/templates/traefik.services.tpl", {
services = local.traefik_services
@@ -46,7 +46,7 @@ resource "null_resource" "deploy_traefik_config" {
}
provisioner "file" {
source = "${path.module}/services.yml"
source = "${path.module}/gateway/lib/scripts/services.yml"
destination = "/home/gateway/services.yaml"
connection {
@@ -203,52 +203,6 @@ module "amap" {
proxmox_host_ip = var.proxmox_host_ip
}
# module "n8n" {
# source = "./modules/apps/n8n"
# providers = {}
# vm_ip_address = "192.168.1.94"
# depends_on = []
# name = "n8n"
# hostname = "n8n"
# domain = "mathieu.wiki"
# vm_id = 215
# node_name = "mop"
# template_id = 103
# cores = 1
# memory = 1024
# balloon = 512
# disk_size = 16
# ssh_public_key = var.ssh_public_key
# proxmox_host_ip = var.proxmox_host_ip
# }
# module "windmill" {
# source = "./modules/apps/windmill"
# providers = {}
# vm_ip_address = "192.168.1.94"
# depends_on = []
# name = "windmill"
# hostname = "windmill"
# domain = "aldon.fr"
# vm_id = 215
# node_name = "mop"
# template_id = 103
# cores = 1
# memory = 2048
# balloon = 1024
# disk_size = 16
# ssh_public_key = var.ssh_public_key
# proxmox_host_ip = var.proxmox_host_ip
# }
# module "keycloak" {
# source = "./modules/apps/keycloak"
# providers = {}