From 34933ef741c2fa8b51d9b380b0af0b4de4062f25 Mon Sep 17 00:00:00 2001 From: cody burkard Date: Tue, 18 Nov 2014 17:22:06 -0800 Subject: [PATCH] use ControlPersist ssh option to create a ControlMaster connection that will not die when a node dies --- examples/cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/cluster.py b/examples/cluster.py index b81bbc9..14ecbfb 100755 --- a/examples/cluster.py +++ b/examples/cluster.py @@ -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: