New in version 3005.
The consul module is used to create and manage Consul ACLs
acl_present:
consul.acl_present:
- id: 38AC8470-4A83-4140-8DFD-F924CD32917F
- name: acl_name
- rules: node "" {policy = "write"} service "" {policy = "read"} key "_rexec" {policy = "write"}
- type: client
- consul_url: http://localhost:8500
acl_delete:
consul.acl_absent:
- id: 38AC8470-4A83-4140-8DFD-F924CD32917F
Ensure the ACL is absent
Specifies a human-friendly name for the ACL token.
Specifies the ID of the ACL.
token to authenticate you Consul query
consul URL to query
Note
For more information https://www.consul.io/api/acl.html#delete-acl-token
Ensure the ACL is present
Specifies a human-friendly name for the ACL token.
Specifies the ID of the ACL.
Specifies the type of ACL token. Valid values are: client and management.
Specifies rules for this ACL token.
consul URL to query
Note
For more information https://www.consul.io/api/acl.html#create-acl-token, https://www.consul.io/api/acl.html#update-acl-token