loki-monitoring02 #41
@@ -89,20 +89,7 @@ locals {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Wave 3: DNS servers
|
# Wave 3: DNS servers (managed in hosts-generated.tf)
|
||||||
"ns1" = {
|
|
||||||
paths = [
|
|
||||||
"secret/data/hosts/ns1/*",
|
|
||||||
"secret/data/shared/dns/*",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
"ns2" = {
|
|
||||||
paths = [
|
|
||||||
"secret/data/hosts/ns2/*",
|
|
||||||
"secret/data/shared/dns/*",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
# Wave 4: http-proxy
|
# Wave 4: http-proxy
|
||||||
"http-proxy" = {
|
"http-proxy" = {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ resource "vault_approle_auth_backend_role" "generated_hosts" {
|
|||||||
|
|
||||||
backend = vault_auth_backend.approle.path
|
backend = vault_auth_backend.approle.path
|
||||||
role_name = each.key
|
role_name = each.key
|
||||||
token_policies = ["host-${each.key}", "homelab-deploy", "nixos-exporter"]
|
token_policies = ["host-${each.key}", "homelab-deploy", "nixos-exporter", "loki-push"]
|
||||||
secret_id_ttl = 0 # Never expire (wrapped tokens provide time limit)
|
secret_id_ttl = 0 # Never expire (wrapped tokens provide time limit)
|
||||||
token_ttl = 3600
|
token_ttl = 3600
|
||||||
token_max_ttl = 3600
|
token_max_ttl = 3600
|
||||||
|
|||||||
Reference in New Issue
Block a user