Ejemplo n.º 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))
Ejemplo n.º 2
0
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))
Ejemplo n.º 3
0
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))
Ejemplo n.º 4
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))
Ejemplo n.º 5
0
def host():
    """adding a host to rabitmq"""
    host = get_host()
    local("rabbitmqctl add_vhost {0}".format(host))
Ejemplo n.º 6
0
def host():
    """adding a host to rabitmq"""
    host = get_host()
    local("rabbitmqctl add_vhost {0}".format(host))
Ejemplo n.º 7
0
def host():
    """adding a host to rabbitmq"""
    rabbit_env["host"] = get_host()
    local("{rabbitmqctl} add_vhost {host}".format(**rabbit_env))
Ejemplo n.º 8
0
def host():
    """adding a host to rabbitmq"""
    rabbit_env["host"] = get_host()
    local("{rabbitmqctl} add_vhost {host}".format(**rabbit_env))