2022-07-27 20:13:11 +00:00
|
|
|
resource "nomad_acl_policy" "anon_policy" {
|
|
|
|
name = "anonymous"
|
2024-08-22 02:48:53 +00:00
|
|
|
description = "Anon read only"
|
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")
|
|
|
|
}
|
|
|
|
|
2022-09-06 21:46:49 +00:00
|
|
|
# TODO: (security) Limit this scope
|
2022-07-27 20:13:11 +00:00
|
|
|
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")
|
|
|
|
}
|