feat: add consul backend

- add consul backend
This commit is contained in:
Ben Vincent 2026-02-08 15:55:30 +11:00
parent f8f1185b42
commit c827daab6c
3 changed files with 9 additions and 3 deletions

View File

@ -169,7 +169,7 @@ locals {
} }
consul_secret_backend = { consul_secret_backend = {
for file_path, content in local.all_configs : for file_path, content in local.all_configs :
trimsuffix(basename(file_path), ".yaml") => content trimsuffix(replace(file_path, "consul_secret_backend/", ""), ".yaml") => content
if startswith(file_path, "consul_secret_backend/") if startswith(file_path, "consul_secret_backend/")
} }
consul_secret_backend_role = { consul_secret_backend_role = {
@ -186,4 +186,4 @@ locals {
if startswith(file_path, "pki_mount_only/") if startswith(file_path, "pki_mount_only/")
} }
} }
} }

View File

@ -0,0 +1,6 @@
description: "consul secret engine for au-syd1 cluster"
default_lease_ttl_seconds: 600
max_lease_ttl_seconds: 86400
address: "consul.service.au-syd1.consul"
scheme: https
bootstrap: false

View File

@ -18,4 +18,4 @@ resource "vault_consul_secret_backend" "consul" {
client_key = var.client_key client_key = var.client_key
default_lease_ttl_seconds = var.default_lease_ttl_seconds default_lease_ttl_seconds = var.default_lease_ttl_seconds
max_lease_ttl_seconds = var.max_lease_ttl_seconds max_lease_ttl_seconds = var.max_lease_ttl_seconds
} }