added technitium config

This commit is contained in:
nick committed 2026-06-25 23:27:25 -07:00
1 parent d4780d8dc9
commit 423caa9ca4
4 files changed
+99 -12

No files matched your search

+12
View File
@@ -8,9 +8,21 @@ terraform {
source = "hashicorp/local"
version = "~> 2.2"
}
technitium = {
source = "kenske/technitium"
version = "~> 0.2"
}
}
}
provider "technitium" {
host = var.technitium_host
# Fall back to a placeholder so the provider passes its credential check on
# the first run (before the token exists in Infisical). No technitium
# resources are created while the token is absent, so the dummy is never used.
token = coalesce(try(data.external.infisical.result["technitium_api_token"], ""), "token-not-yet-provisioned")
}
data "external" "infisical" {
program = ["bash", "-c", "infisical export --template=./secrets.tmpl"]
}