范例:
rabbit_user:
rabbitmq_user.present:
- password: password
- force: True
- tags:
- monitoring
- user
- perms:
- '/':
- '.*'
- '.*'
- '.*'
- runas: rabbitmq
salt.states.rabbitmq_user.
absent
(name, runas=None)¶Ensure the named user is absent
salt.states.rabbitmq_user.
present
(name, password=None, force=False, tags=None, perms=(), runas=None)¶Ensure the RabbitMQ user exists.