From ce2dbb7d471eb6ba0252c53dd819620a9506b30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20L=C3=B3pez?= Date: Mon, 18 Mar 2024 11:24:30 +0100 Subject: [PATCH] TESTS: Fix the ssh configuration - II The previous patch fixed the environment for the multihost tests, but system tests also need the fix. This fix will become obsolete and should be removed when FreeIPA adapts the ipa-client-install tool to use the sss_ssh_knownhosts tool. --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 789537a4645..dc268105cba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -339,6 +339,17 @@ jobs: systemctl restart sssd || systemctl status sssd + - name: Patch the SSH configuration + uses: SSSD/sssd-ci-containers/actions/exec@master + with: + user: root + script: | + #!/bin/bash + test -x /usr/bin/sss_ssh_knownhosts && \ + sed -e 's/GlobalKnownHostsFile/#GlobalKnownHostsFile/' \ + -e 's/ProxyCommand \/usr\/bin\/sss_ssh_knownhostsproxy -p %p %h/KnownHostsCommand \/usr\/bin\/sss_ssh_knownhosts %H/' \ + -i /etc/ssh/ssh_config.d/04-ipa.conf + - name: Install system tests dependencies shell: bash working-directory: ./sssd/src/tests/system