Add ssh multiplexing options to default REMOTE_EXEC and REMOTE_COPY.

remotes/origin/4.0
Darko Poljak 9 years ago
parent 36d6ffbe74
commit bb43a8f47f
  1. 6
      cdist/__init__.py

6
cdist/__init__.py vendored

@ -41,8 +41,10 @@ BANNER = """
"P' "" ""
"""
REMOTE_COPY = "scp -o User=root -q"
REMOTE_EXEC = "ssh -o User=root -q"
SSH_MUX_OPTS = ("-o ControlPath=~/.ssh/master-%l-%r@%h:%p"
" -o ControlMaster=auto -o ControlPersist=125")
REMOTE_COPY = "scp -o User=root -q " + SSH_MUX_OPTS
REMOTE_EXEC = "ssh -o User=root -q " + SSH_MUX_OPTS
class Error(Exception):
"""Base exception class for this project"""

Loading…
Cancel
Save