added caddy provider support

This commit is contained in:
nick committed 2026-07-01 17:14:50 -07:00
1 parent 91e80ae6f8
commit 408b5d8652
6 files changed
+193 -4

No files matched your search

+12
View File
@@ -17,6 +17,7 @@ locals {
technitium_enabled = try(data.external.infisical.result["technitium_api_token"], "") != ""
ipam_enabled = try(data.external.infisical.result["ipam_username"], "") != ""
caddy_enabled = var.caddy_host != ""
# Shared inputs passed to every proxmox_node module call.
node_common = {
@@ -102,6 +103,17 @@ module "technitium" {
records = var.dns_records
}
module "caddy" {
source = "./opentofu/modules/caddy"
enabled = local.caddy_enabled
proxies = var.caddy_proxies
providers = {
caddy = caddy
}
}
resource "local_file" "ansible_inventory" {
filename = "${path.module}/${var.ansible_inventory_path}"
content = templatefile("${path.module}/opentofu/inventory.tpl", {