From ef925714d5fc4aed09981d2c6de1a2088a24c881 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Sep 2011 02:57:47 +0200 Subject: [PATCH] transfer explorer Signed-off-by: Nico Schottelius --- bin/cdist | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/cdist b/bin/cdist index 5cabf17b..7d28d112 100755 --- a/bin/cdist +++ b/bin/cdist @@ -45,7 +45,7 @@ def run_or_fail(*args): exit_error("Command failed:", newargs) def remote_run_or_fail(hostname, *args): - newargs = ["ssh", hostname] + newargs = ["ssh", "root@" + hostname] newargs.extend(*args) run_or_fail(newargs) @@ -55,7 +55,7 @@ def remove_remote_dir(hostname, destination): def transfer_dir(hostname, source, destination): remove_remote_dir(hostname, destination) - run_or_fail(["scp", "-r", source, hostname + ":" + destination]) + run_or_fail(["scp", "-r", source, "root@" + hostname + ":" + destination]) def base_directory(): """Returns the directory in which all cdist stuff is based in""" @@ -95,6 +95,8 @@ def global_explore(hostname): if(len(explorer) == 0): exit_error("No explorers found in", global_explorer_directory()) + transfer_global_explorers(hostname) + def init_deploy(hostname): logger("info", "Creating clean directory structure")