Fix nomad vault policies
This commit is contained in:
parent
f1c7e57682
commit
428306cdb2
@ -2,5 +2,5 @@ resource "nomad_acl_policy" "create_post_bootstrap_policy" {
|
|||||||
# count = can(tobool(var.nomad_secret_id)) ? 1 : 0
|
# count = can(tobool(var.nomad_secret_id)) ? 1 : 0
|
||||||
name = "anonymous"
|
name = "anonymous"
|
||||||
description = "Anon RW"
|
description = "Anon RW"
|
||||||
rules_hcl = file("${path.module}/acls/nomad-anon-bootstrap.hcl")
|
rules_hcl = file("${path.module}/nomad-anon-bootstrap.hcl")
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ resource "vault_nomad_secret_backend" "config" {
|
|||||||
resource "vault_nomad_secret_role" "nomad-deploy" {
|
resource "vault_nomad_secret_role" "nomad-deploy" {
|
||||||
backend = vault_nomad_secret_backend.config.backend
|
backend = vault_nomad_secret_backend.config.backend
|
||||||
role = "nomad-deploy"
|
role = "nomad-deploy"
|
||||||
# policies = ["nomad-deploy"]
|
policies = ["nomad-deploy"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "vault_nomad_secret_role" "admin" {
|
resource "vault_nomad_secret_role" "admin" {
|
||||||
|
Loading…
Reference in New Issue
Block a user