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