From 2fa6b511f1a6c1a3372aacdacf7b6f68a4c72ddf Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Wed, 12 Apr 2017 19:44:00 +0800 Subject: Move YAML resources to /resources. - replacing the content of /benchmarks will break current module like api/cli - migration required before surpressing the current benchmarks/ folder Change-Id: I8bd04eeb18aaa3c966330ff7adbe85a267680fc1 Signed-off-by: Yujun Zhang --- resources/template/ssh.cfg.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 resources/template/ssh.cfg.j2 (limited to 'resources/template/ssh.cfg.j2') diff --git a/resources/template/ssh.cfg.j2 b/resources/template/ssh.cfg.j2 new file mode 100644 index 00000000..2fe049e2 --- /dev/null +++ b/resources/template/ssh.cfg.j2 @@ -0,0 +1,14 @@ +# 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' fuel-master 'ssh-add && nc %h %p' + +{% endfor %} -- cgit 1.2.3-korg