Fix nomad vault policies

This commit is contained in:
IamTheFij 2022-04-04 22:19:32 -07:00
parent f8f7cf2dc2
commit 18635aad2d
2 changed files with 2 additions and 2 deletions

View File

@ -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")
} }

View File

@ -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" {