Skip to content

Commit 56a0a57

Browse files
classabbyampthe-maldridge
authored andcommitted
terraform/hashistack: add buildbot worker nomad var policy
1 parent 8a318ce commit 56a0a57

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
resource "nomad_acl_policy" "buildbot_worker_admin" {
2+
name = "buildbot-worker-admin"
3+
description = "Manage buildbot worker secrets in nomad variables"
4+
5+
job_acl {
6+
namespace = "build"
7+
job_id = "buildbot"
8+
}
9+
10+
rules_hcl = <<EOT
11+
namespace "build" {
12+
variables {
13+
path "nomad/jobs/buildbot-worker" {
14+
capabilities = ["read"]
15+
}
16+
}
17+
}
18+
EOT
19+
}

0 commit comments

Comments
 (0)