Skip to content

Commit

Permalink
terraform/hashistack: add buildbot worker nomad var policy
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Sep 28, 2024
1 parent 24eecbe commit a934157
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions terraform/hashistack/policy_buildbot.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
resource "nomad_acl_policy" "buildbot_worker_admin" {
name = "buildbot-worker-admin"
description = "Manage buildbot worker secrets in nomad variables"

job_acl {
namespace = "build"
job_id = "buildbot"
}

rules_hcl = <<EOT
namespace "build" {
variables {
path "nomad/jobs/buildbot-worker" {
capabilities = ["read"]
}
}
}
EOT
}

0 comments on commit a934157

Please sign in to comment.