consul
¶
Consul Management¶
Added in version 3005.
The consul module is used to create and manage Consul ACLs
acl_present:
consul.acl_present:
- name: acl_name
- consul_url: http://localhost:8500
- rules:
- node: "host.example.local"
policy: "write"
- agent: "host.example.local"
policy: "write"
- session: "host.example.local"
policy: "write"
- key: ""
policy: "read"
- service: ""
policy: "read"
acl_delete:
consul.acl_absent:
- id: 38AC8470-4A83-4140-8DFD-F924CD32917F
- saltext.consul.states.consul.acl_present(name, id=None, token=None, type='client', rules='', consul_url='http://localhost:8500')[source]¶
Ensure the ACL is present
- name
Specifies a human-friendly name for the ACL token.
- id
Specifies the ID of the ACL.
- type: client
Specifies the type of ACL token. Valid values are: client and management.
- rules
Specifies rules for this ACL token.
- consul_urlhttp://localhost:8500
consul URL to query
Note
For more information https://www.consul.io/api/acl.html#bootstrap-acls
- saltext.consul.states.consul.acl_absent(name, id=None, token=None, consul_url='http://localhost:8500')[source]¶
Ensure the ACL is absent
- name
Specifies a human-friendly name for the ACL token.
- id
Specifies the ID of the ACL.
- token
token to authenticate you Consul query
- consul_urlhttp://localhost:8500
consul URL to query
Note
For more information https://www.consul.io/api/acl.html#bootstrap-acls