summaryrefslogtreecommitdiffstats
path: root/resources/template/ssh.cfg.j2
diff options
context:
space:
mode:
Diffstat (limited to 'resources/template/ssh.cfg.j2')
-rw-r--r--resources/template/ssh.cfg.j214
1 files changed, 14 insertions, 0 deletions
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 %}