From e6da6749be6e5143855a48c866de2cd03789d2e8 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Tue, 25 Apr 2017 19:29:36 +0800 Subject: Merge workspace files into one folder Change-Id: Ie8d0e8fdd6d6c212701ba1ee10b1d05da1ccca22 Signed-off-by: Yujun Zhang --- .../qtip-workspace/files/workspace/templates/ssh.cfg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg (limited to 'resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg') diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg b/resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg new file mode 100644 index 00000000..d719182c --- /dev/null +++ b/resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg @@ -0,0 +1,16 @@ +{% raw %} +# Connect to target node through jump host +# +# OpenSSH 7.3: +# ProxyJump jumphost +# before OpenSSH 7.3 +# ProxyCommand ssh -o 'ForwardAgent yes' jumphost 'ssh-add && nc %h %p' + +{% for (name, host) in hosts_meta.items() %} +Host {{ name }} + HostName {{ host.ansible_ssh_host }} + User root + ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master_host }} 'ssh-add && nc %h %p' + +{% endfor %} +{% endraw %} -- cgit 1.2.3-korg