From 18635aad2dfdd004526cfc3dccc9d0aacad73376 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 4 Apr 2022 22:19:32 -0700 Subject: [PATCH] Fix nomad vault policies --- acls/acls.tf | 2 +- acls/nomad_vault.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acls/acls.tf b/acls/acls.tf index de87592..4631b7c 100644 --- a/acls/acls.tf +++ b/acls/acls.tf @@ -2,5 +2,5 @@ resource "nomad_acl_policy" "create_post_bootstrap_policy" { # count = can(tobool(var.nomad_secret_id)) ? 1 : 0 name = "anonymous" description = "Anon RW" - rules_hcl = file("${path.module}/acls/nomad-anon-bootstrap.hcl") + rules_hcl = file("${path.module}/nomad-anon-bootstrap.hcl") } diff --git a/acls/nomad_vault.tf b/acls/nomad_vault.tf index 602a616..28ba3c6 100644 --- a/acls/nomad_vault.tf +++ b/acls/nomad_vault.tf @@ -12,7 +12,7 @@ resource "vault_nomad_secret_backend" "config" { resource "vault_nomad_secret_role" "nomad-deploy" { backend = vault_nomad_secret_backend.config.backend role = "nomad-deploy" - # policies = ["nomad-deploy"] + policies = ["nomad-deploy"] } resource "vault_nomad_secret_role" "admin" {