예제 #1
0
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))
예제 #2
0
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))
예제 #3
0
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))
예제 #4
0
파일: mq.py 프로젝트: mnozary/cloudmesh
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))
예제 #5
0
파일: mq.py 프로젝트: mnozary/cloudmesh
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))
예제 #6
0
파일: mq.py 프로젝트: lee212/cloudmesh
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))
예제 #7
0
파일: mq.py 프로젝트: lee212/cloudmesh
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))
예제 #8
0
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))