use ControlPersist ssh option to create a ControlMaster connection that will not die when a node dies

This commit is contained in:
cody burkard
2014-11-18 17:22:06 -08:00
parent d37d6ecd99
commit 34933ef741
+2 -1
View File
@@ -135,7 +135,8 @@ class RemoteMixin( object ):
self.sshcmd = [ 'sudo', '-E', '-u', self.user ] + self.sshbase
if self.controlPath:
self.sshcmd += [ '-o', 'ControlPath=' + self.controlPath,
'-o', 'ControlMaster=auto' ]
'-o', 'ControlMaster=auto',
'-o', 'ControlPersist=' + '1' ]
self.sshcmd = self.sshcmd + [ self.dest ]
self.isRemote = True
else: