fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Parallel Tasks With Different Parameters


From: Erikton Konomi
Subject: [Fab-user] Parallel Tasks With Different Parameters
Date: Thu, 8 Dec 2016 14:53:16 -0800

Hello,

How would you go about running multiple tasks on multiple hosts but with different parameter for each host? For example a fabfile with:

@parallel
def task(param):
    run("some command that takes <param> as argument")

def launcher():
    execute(task, param_1, hosts=['192.168.1.100', '192.168.1.200'])
    # The above will run the task on 2 hosts but with the same value for <param>
    # I would like to run both hosts but specifying different value for <param> for each host, like:
    # execute(task, args=[param_1, param_2], hosts=['192.168.1.100', '192.168.1.200'])

Is this functionality there? I couldn't find something on the documents.

Thanks,
Erik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]