SSH batch mode and no strict host checking for remote_walmgr
authorMartin Pihlak <martin.pihlak@skype.net>
Wed, 9 Feb 2011 13:12:47 +0000 (13:12 +0000)
committerMartin Pihlak <martin.pihlak@skype.net>
Wed, 9 Feb 2011 13:12:47 +0000 (13:12 +0000)
python/walmgr.py

index 52eab6148faa0db10dd2d982a2e71c84a23bba88..a4e69e09350c9a13fc6afe26d40420bd72ae6059 100755 (executable)
@@ -708,7 +708,8 @@ class WalMgr(skytools.DBScript):
             raise Exception("slave_config not specified in %s" % self.cfgfile)
 
         slave_host = self.cf.get("slave")
-        cmdline = [ "ssh", sshopt, slave_host, self.script, slave_config, command ]
+        cmdline = [ "ssh", sshopt, "-o", "Batchmode=yes", "-o", "StrictHostKeyChecking=no",
+                    slave_host, self.script, slave_config, command ]
 
         if self.not_really:
             self.log.info("remote_walmgr: %s" % command)