forked from ungleich-public/cdist
Add ssh multiplexing options to default REMOTE_EXEC and REMOTE_COPY.
This commit is contained in:
parent
36d6ffbe74
commit
bb43a8f47f
1 changed files with 4 additions and 2 deletions
|
@ -41,8 +41,10 @@ BANNER = """
|
||||||
"P' "" ""
|
"P' "" ""
|
||||||
"""
|
"""
|
||||||
|
|
||||||
REMOTE_COPY = "scp -o User=root -q"
|
SSH_MUX_OPTS = ("-o ControlPath=~/.ssh/master-%l-%r@%h:%p"
|
||||||
REMOTE_EXEC = "ssh -o User=root -q"
|
" -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):
|
class Error(Exception):
|
||||||
"""Base exception class for this project"""
|
"""Base exception class for this project"""
|
||||||
|
|
Loading…
Reference in a new issue