From ab098ada043d882b9c3503af8e5d9af3977ab84d Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 8 Jun 2011 14:33:31 +0200 Subject: Skip know_host check for ipa-replica-conncheck When IPA replica is installed and the master machine record is not in ~/.ssh/known_hosts, ipa-replica-install will prompt user to answer a question about adding a host to this file. This has, however, a potential to break automatic tests. ipa-replica-conncheck should not require any further user interaction when all mandatory options are filled. https://fedorahosted.org/freeipa/ticket/1305 --- install/tools/ipa-replica-conncheck | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'install/tools/ipa-replica-conncheck') diff --git a/install/tools/ipa-replica-conncheck b/install/tools/ipa-replica-conncheck index 06cec2cfd..7f876c95a 100755 --- a/install/tools/ipa-replica-conncheck +++ b/install/tools/ipa-replica-conncheck @@ -330,7 +330,9 @@ def main(): stderr = '' remote_addr = "%s@%s" % (user, options.master) - (stdout, stderr, returncode) = ipautil.run(['/usr/bin/ssh', remote_addr, + (stdout, stderr, returncode) = ipautil.run(['/usr/bin/ssh', + '-q', '-o StrictHostKeychecking=no', + '-o UserKnownHostsFile=/dev/null', remote_addr, "/usr/sbin/ipa-replica-conncheck " + " ".join(remote_check_opts)], env={'KRB5_CONFIG':KRB5_CONFIG, 'KRB5CCNAME' : CCACHE_FILE}, raiseonerr=False) -- cgit