22.27.94. salt.states.rabbitmq_user

22.27.94.1. Manage RabbitMQ Users

Example:

rabbit_user:
    rabbitmq_user.present:
        - password: password
        - force: True
        - tags: administrator
        - perms:
          - '/':
            - '.*'
            - '.*'
            - '.*'
        - runas: rabbitmq
salt.states.rabbitmq_user.absent(name, runas=None)

Ensure the named user is absent

name
The name of the user to remove
runas
User to run the command
salt.states.rabbitmq_user.present(name, password=None, force=False, tags=None, perms=(), runas=None)

Ensure the RabbitMQ user exists.

name
User name
password
User's password, if one needs to be set
force
If user exists, forcibly change the password
tags
Optionally set user tags for user
perms
A list of dicts with vhost keys and 3-tuple values
runas
Name of the user to run the command

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Table Of Contents

Previous topic

22.27.93. salt.states.rabbitmq_policy

Next topic

22.27.95. salt.states.rabbitmq_vhost

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.