示例#1
0
def install_service(payload, ritm_no, depend_data):
    instance_ips = []
    task_id = depend_data[0]['task']
    task = db_api.get_task(task_id)
    output = task.get('output')
    for item in output:
        instance_ips.append(item.get('public_ip'))
    response = service_base.install_service(payload, instance_ips)
    print response
    return response
def deploy_app(args, hosts):
    args = {
        'username': args.get('username'),
        'password': args.get('password'),
        'target_server': args.get('target_server'),
        'warfile_path': args.get('warfile_path'),
        'warfile_name': args.get('warfile_name')
    }
    response = service_base.install_service(args=args, hosts=hosts)
    print response
    return response
def install_service(service, hosts):
    response = service_base.install_service(service, hosts)
    print response
    return response