Erikton Konomi
2016-12-08 22:53:16 UTC
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
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