Skip to content

Commit

Permalink
terraform/hashistack/policy_popcorn: let popcorn-report access vars f…
Browse files Browse the repository at this point in the history
…rom popcorn
  • Loading branch information
classabbyamp committed Jul 4, 2024
1 parent 0dfc63d commit 74beeaf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions terraform/hashistack/policy_popcorn.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
resource "nomad_acl_policy" "popcorn_admin" {
name = "popcorn-admin"
description = "Manage popcorn keys in nomad variables"

job_acl {
namespace = "apps"
job_id = "popcorn-report"
}

rules_hcl = <<EOT
namespace "apps" {
variables {
path "nomad/jobs/popcorn" {
capabilities = ["read"]
}
}
}
EOT
}

0 comments on commit 74beeaf

Please sign in to comment.