Rename nomad anon policy file

This commit is contained in:
IamTheFij 2022-08-23 10:31:03 -07:00
parent 39107538e9
commit 9aad3d1594
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
resource "nomad_acl_policy" "anon_policy" {
name = "anonymous"
description = "Anon RO"
rules_hcl = file("${path.module}/nomad-anon-bootstrap.hcl")
rules_hcl = file("${path.module}/nomad-anon-policy.hcl")
}
resource "nomad_acl_policy" "admin" {
@ -13,6 +13,6 @@ resource "nomad_acl_policy" "admin" {
# TODO: Limit this scope
resource "nomad_acl_policy" "deploy" {
name = "deploy"
description = "Admin RW"
description = "Write for job deployments"
rules_hcl = file("${path.module}/nomad-deploy-policy.hcl")
}

View File

@ -412,7 +412,7 @@
- name: Copy policy
copy:
src: ./acls/nomad-anon-bootstrap.hcl
src: ./acls/nomad-anon-policy.hcl
dest: /tmp/anonymous.policy.hcl
delegate_to: "{{ play_hosts[0] }}"
register: anon_policy
@ -425,7 +425,7 @@
- acl
- policy
- apply
- -description="Anon RW"
- -description="Anon read only"
- anonymous
- /tmp/anonymous.policy.hcl
environment: