feat: add terraform_nomad role

- add approle and policy for nomad terraform
This commit is contained in:
Ben Vincent 2024-12-28 17:14:14 +11:00
parent d5bd00d8ab
commit fc22ac1711
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,15 @@
resource "vault_approle_auth_backend_role" "terraform_nomad" {
role_name = "terraform_nomad"
bind_secret_id = false
token_policies = [
"default_access",
"nomad",
]
token_ttl = 60
token_max_ttl = 120
token_bound_cidrs = [
"10.10.12.200/32",
"198.18.13.67/32",
"198.18.13.68/32",
]
}

View File

@ -13,6 +13,7 @@ locals {
"policies/sshca",
"policies/kv/service/glauth/services",
"policies/kv/service/puppetapi",
"policies/kv/service/terraform",
]
}

View File

@ -0,0 +1,3 @@
path "kv/data/service/terraform/nomad" {
capabilities = ["read"]
}