def dsetool_cmd(nodes, options):
    """Run a dsetool command simultaneously on each node specified"""
    cmd = 'JAVA_HOME={java_home} {dsetool_cmd} {options}'.format(java_home=JAVA_HOME,
                                                                 dsetool_cmd=os.path.join(dse.get_bin_path(),
                                                                                          'dsetool'), options=options)
    with common.fab.settings(fab.show('warnings', 'running', 'stdout', 'stderr'), hosts=nodes, warn_only=True):
        return execute(fab.run, cmd)
Exemple #2
0
def dsetool_cmd(nodes, options):
    """Run a dsetool command simultaneously on each node specified"""
    cmd = 'JAVA_HOME={java_home} {dsetool_cmd} {options}'.format(java_home=JAVA_HOME,
                                                                 dsetool_cmd=os.path.join(dse.get_bin_path(),
                                                                                          'dsetool'), options=options)
    with common.fab.settings(fab.show('warnings', 'running', 'stdout', 'stderr'), hosts=nodes, warn_only=True):
        return execute(fab.run, cmd)
def dse_cmd(node, options):
    cmd = "JAVA_HOME={java_home} {dse_cmd} {options}".format(java_home=JAVA_HOME,
                                                             dse_cmd=os.path.join(dse.get_bin_path(), 'dse'),
                                                             options=options)
    with common.fab.settings(fab.show('warnings', 'running', 'stdout', 'stderr'), hosts=node, warn_only=True):
        return execute(fab.run, cmd)[node]
Exemple #4
0
def dse_cmd(node, options):
    cmd = "JAVA_HOME={java_home} {dse_cmd} {options}".format(java_home=JAVA_HOME,
                                                             dse_cmd=os.path.join(dse.get_bin_path(), 'dse'),
                                                             options=options)
    with common.fab.settings(fab.show('warnings', 'running', 'stdout', 'stderr'), hosts=node, warn_only=True):
        return execute(fab.run, cmd)[node]