use ControlPersist ssh option to create a ControlMaster connection that will not die when a node dies
This commit is contained in:
+2
-1
@@ -135,7 +135,8 @@ class RemoteMixin( object ):
|
|||||||
self.sshcmd = [ 'sudo', '-E', '-u', self.user ] + self.sshbase
|
self.sshcmd = [ 'sudo', '-E', '-u', self.user ] + self.sshbase
|
||||||
if self.controlPath:
|
if self.controlPath:
|
||||||
self.sshcmd += [ '-o', 'ControlPath=' + self.controlPath,
|
self.sshcmd += [ '-o', 'ControlPath=' + self.controlPath,
|
||||||
'-o', 'ControlMaster=auto' ]
|
'-o', 'ControlMaster=auto',
|
||||||
|
'-o', 'ControlPersist=' + '1' ]
|
||||||
self.sshcmd = self.sshcmd + [ self.dest ]
|
self.sshcmd = self.sshcmd + [ self.dest ]
|
||||||
self.isRemote = True
|
self.isRemote = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user