2022-07-27 20:13:11 +00:00
|
|
|
resource "nomad_acl_policy" "anon_policy" {
|
|
|
|
name = "anonymous"
|
|
|
|
description = "Anon RO"
|
2022-08-23 17:31:03 +00:00
|
|
|
rules_hcl = file("${path.module}/nomad-anon-policy.hcl")
|
2022-07-27 20:13:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "nomad_acl_policy" "admin" {
|
|
|
|
name = "admin"
|
|
|
|
description = "Admin RW for admins"
|
|
|
|
rules_hcl = file("${path.module}/nomad-admin-policy.hcl")
|
|
|
|
}
|
|
|
|
|
|
|
|
# TODO: Limit this scope
|
|
|
|
resource "nomad_acl_policy" "deploy" {
|
|
|
|
name = "deploy"
|
2022-08-23 17:31:03 +00:00
|
|
|
description = "Write for job deployments"
|
2022-07-27 20:13:11 +00:00
|
|
|
rules_hcl = file("${path.module}/nomad-deploy-policy.hcl")
|
|
|
|
}
|