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