|
|
|
@ -107,20 +107,26 @@ options:
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
|
# Add user to server and assign full access control on / vhost.
|
|
|
|
|
# The user might have permission rules for other vhost but you don't care.
|
|
|
|
|
- rabbitmq_user: user=joe
|
|
|
|
|
password=changeme
|
|
|
|
|
vhost=/
|
|
|
|
|
configure_priv=.*
|
|
|
|
|
read_priv=.*
|
|
|
|
|
write_priv=.*
|
|
|
|
|
state=present
|
|
|
|
|
- rabbitmq_user:
|
|
|
|
|
user: joe
|
|
|
|
|
password: changeme
|
|
|
|
|
vhost: /
|
|
|
|
|
configure_priv: .*
|
|
|
|
|
read_priv: .*
|
|
|
|
|
write_priv: .*
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
# Add user to server and assign full access control on / vhost.
|
|
|
|
|
# The user doesn't have permission rules for other vhosts
|
|
|
|
|
- rabbitmq_user: user=joe
|
|
|
|
|
password=changeme
|
|
|
|
|
permissions=[{vhost='/', configure_priv='.*', read_priv='.*', write_priv='.*'}]
|
|
|
|
|
state=present
|
|
|
|
|
- rabbitmq_user:
|
|
|
|
|
user: joe
|
|
|
|
|
password: changeme
|
|
|
|
|
permissions:
|
|
|
|
|
- vhost: /
|
|
|
|
|
configure_priv: .*
|
|
|
|
|
read_priv: .*
|
|
|
|
|
write_priv: .*
|
|
|
|
|
state: present
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
class RabbitMqUser(object):
|
|
|
|
|