def allow(): """allow a user to access the host in rabitmq""" values = { 'host': get_host(), 'user': get_user() } # print('rabbitmqctl set_permissions -p {host} {user} ".*" ".*" ".*"'.format(**values)) local('rabbitmqctl set_permissions -p {host} {user} ".*" ".*" ".*"'.format(**values))
def user(name=None): ''' create a user in rabit mq :param name: if the name is ommited it will be queried for it. ''' if name is None: user = get_user() password = get_password() local("rabbitmqctl {0} {1}".format(name, password))
def allow(): """allow a user to access the host in rabbitmq""" # print('{rabbitmqctl} set_permissions -p {host} {user} ".*" ".*" ".*"' # .format(**rabbit_env)) rabbit_env["host"] = get_host() rabbit_env["user"] = get_user() local( '{rabbitmqctl} set_permissions -p {host} {user} ".*" ".*" ".*"' .format(**rabbit_env))
def user(name=None): ''' create a user in rabbit mq :param name: if the name is ommited it will be queried for it. ''' if name is None: rabbit_env["user"] = get_user() rabbit_env["password"] = get_password() local("{rabbitmqctl} {user} {password}".format(**rabbit_env))
def user(name=None): """ create a user in rabbit mq :param name: if the name is ommited it will be queried for it. """ if name is None: rabbit_env["user"] = get_user() rabbit_env["password"] = get_password() local("{rabbitmqctl} {user} {password}".format(**rabbit_env))
def allow(): """allow a user to access the host in rabitmq""" values = {'host': get_host(), 'user': get_user()} # print('rabbitmqctl set_permissions -p {host} {user} ".*" ".*" ".*"'.format(**values)) local('rabbitmqctl set_permissions -p {host} {user} ".*" ".*" ".*"'.format( **values))