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