Rename nomad anon policy file

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

View File

@ -1,5 +1,5 @@
namespace "*" {
policy = "read"
policy = "read"
}
agent {

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: