Rename nomad anon policy file
This commit is contained in:
parent
39107538e9
commit
9aad3d1594
@ -1,5 +1,5 @@
|
||||
namespace "*" {
|
||||
policy = "read"
|
||||
policy = "read"
|
||||
}
|
||||
|
||||
agent {
|
@ -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")
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user