Rename nomad anon policy file
This commit is contained in:
parent
c62a0118a5
commit
e96a7501dd
@ -1,7 +1,7 @@
|
|||||||
resource "nomad_acl_policy" "anon_policy" {
|
resource "nomad_acl_policy" "anon_policy" {
|
||||||
name = "anonymous"
|
name = "anonymous"
|
||||||
description = "Anon RO"
|
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" {
|
resource "nomad_acl_policy" "admin" {
|
||||||
@ -13,6 +13,6 @@ resource "nomad_acl_policy" "admin" {
|
|||||||
# TODO: Limit this scope
|
# TODO: Limit this scope
|
||||||
resource "nomad_acl_policy" "deploy" {
|
resource "nomad_acl_policy" "deploy" {
|
||||||
name = "deploy"
|
name = "deploy"
|
||||||
description = "Admin RW"
|
description = "Write for job deployments"
|
||||||
rules_hcl = file("${path.module}/nomad-deploy-policy.hcl")
|
rules_hcl = file("${path.module}/nomad-deploy-policy.hcl")
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@
|
|||||||
|
|
||||||
- name: Copy policy
|
- name: Copy policy
|
||||||
copy:
|
copy:
|
||||||
src: ./acls/nomad-anon-bootstrap.hcl
|
src: ./acls/nomad-anon-policy.hcl
|
||||||
dest: /tmp/anonymous.policy.hcl
|
dest: /tmp/anonymous.policy.hcl
|
||||||
delegate_to: "{{ play_hosts[0] }}"
|
delegate_to: "{{ play_hosts[0] }}"
|
||||||
register: anon_policy
|
register: anon_policy
|
||||||
@ -425,7 +425,7 @@
|
|||||||
- acl
|
- acl
|
||||||
- policy
|
- policy
|
||||||
- apply
|
- apply
|
||||||
- -description="Anon RW"
|
- -description="Anon read only"
|
||||||
- anonymous
|
- anonymous
|
||||||
- /tmp/anonymous.policy.hcl
|
- /tmp/anonymous.policy.hcl
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user