salt.states.consul

Consul Management

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
salt.states.consul.acl_absent(name, id=None, token=None, consul_url='http://localhost:8500')

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://locahost:8500

consul URL to query

salt.states.consul.acl_present(name, id=None, token=None, type='client', rules='', consul_url='http://localhost:8500')

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://locahost:8500

consul URL to query