19 lines
543 B
HCL
19 lines
543 B
HCL
resource "nomad_acl_policy" "anon_policy" {
|
|
name = "anonymous"
|
|
description = "Anon read only"
|
|
rules_hcl = file("${path.module}/nomad-anon-policy.hcl")
|
|
}
|
|
|
|
resource "nomad_acl_policy" "admin" {
|
|
name = "admin"
|
|
description = "Admin RW for admins"
|
|
rules_hcl = file("${path.module}/nomad-admin-policy.hcl")
|
|
}
|
|
|
|
# TODO: (security) Limit this scope
|
|
resource "nomad_acl_policy" "deploy" {
|
|
name = "deploy"
|
|
description = "Write for job deployments"
|
|
rules_hcl = file("${path.module}/nomad-deploy-policy.hcl")
|
|
}
|