salt.states.rabbitmq_policy

Manage RabbitMQ Policies

maintainer:Benn Eichhorn <benn@getlocalmeasure.com>
maturity:new
platform:all

Example:

rabbit_policy:
  rabbitmq_policy.present:
    - name: HA
    - pattern: '.*'
    - definition: '{"ha-mode": "all"}'
salt.states.rabbitmq_policy.absent(name, vhost='/', runas=None)

Ensure the named policy is absent

Reference: http://www.rabbitmq.com/ha.html

name
The name of the policy to remove
runas
Name of the user to run the command as
salt.states.rabbitmq_policy.present(name, pattern, definition, priority=0, vhost='/', runas=None)

Ensure the RabbitMQ policy exists.

Reference: http://www.rabbitmq.com/ha.html

name
Policy name
pattern
A regex of queues to apply the policy to
definition
A json dict describing the policy
priority
Priority (defaults to 0)
vhost
Virtual host to apply to (defaults to '/')
runas
Name of the user to run the command as