in theory, init_deploy is done

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-08 01:41:54 +02:00
parent a90751dcff
commit 89964b32dd

View file

@ -59,17 +59,16 @@ def init_deploy(hostname):
logger("info", "Creating clean directory structure") logger("info", "Creating clean directory structure")
# Ensure there is no old stuff, neither local nor remote # Ensure there is no old stuff, neither local nor remote
run_or_fail(["echo", "rm -rf", "$__cdist_local_base_dir"]) run_or_fail(["rm -rf", "$__cdist_local_base_dir"])
remote_run_or_fail(hostname, ["rm -rf", "${__cdist_remote_base_dir}"]) remote_run_or_fail(hostname, ["rm -rf", "${__cdist_remote_base_dir}"])
#
# # Init base # Create base directories
# mkdir -p "$__cdist_local_base_dir" run_or_fail(["mkdir -p", "$__cdist_local_base_dir"])
# ssh "${__cdist_remote_user}@${__cdist_target_host}" \ remote_run_or_fail(hostname,["mkdir -p", "${__cdist_remote_base_dir}"])
# "mkdir -p ${__cdist_remote_base_dir}"
# # Link configuraion source directory - consistent with remote
# # Link configuraion source directory - consistent with remote run_or_fail(["ln -sf", "$__cdist_conf_dir", "$__cdist_local_base_dir/$__cdist_name_conf_dir"])
# ln -sf "$__cdist_conf_dir" "$__cdist_local_base_dir/$__cdist_name_conf_dir"
if __name__ == "__main__": if __name__ == "__main__":