diff mbox series

[v2,06/12] ssh.Makefile: Generate an sshdir variable

Message ID 20250205155252.1317763-7-cel@kernel.org (mailing list archive)
State New
Headers show
Series Replace terraform update_ssh_config module | expand

Commit Message

Chuck Lever Feb. 5, 2025, 3:52 p.m. UTC
From: Chuck Lever <chuck.lever@oracle.com>

The update_ssh_config role needs to update some files under .ssh/
besides the ssh config file. Derive a pathname of that directory
for the Kconfig-specified sshconfig variable, and set that as a
global variable (it's needed in more than one place).

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 scripts/ssh.Makefile | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/scripts/ssh.Makefile b/scripts/ssh.Makefile
index caa4bc797c48..150001d8bbbd 100644
--- a/scripts/ssh.Makefile
+++ b/scripts/ssh.Makefile
@@ -9,6 +9,7 @@  endif
 ifeq (y,$(CONFIG_KDEVOPS_SSH_CONFIG_UPDATE))
 SSH_CONFIG_FILE:=$(subst ",,$(CONFIG_KDEVOPS_SSH_CONFIG))
 ANSIBLE_EXTRA_ARGS += sshconfig=$(CONFIG_KDEVOPS_SSH_CONFIG)
+ANSIBLE_EXTRA_ARGS += sshdir=$(shell dirname $(SSH_CONFIG_FILE))
 endif
 
 PHONY += remove-ssh-key