Benn Eichhorn <benn@getlocalmeasure.com>
new
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
The name of the policy to remove
Name of the user to run the command as
salt.states.rabbitmq_policy.
present
(name, pattern, definition, priority=0, vhost='/', runas=None, apply_to=None)¶Ensure the RabbitMQ policy exists.
Reference: http://www.rabbitmq.com/ha.html
Policy name
A regex of queues to apply the policy to
A json dict describing the policy
Priority (defaults to 0)
Virtual host to apply to (defaults to '/')
Name of the user to run the command as
Apply policy to 'queues', 'exchanges' or 'all' (default to 'all')