aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/ssh.cfg.j2
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-12 12:14:59 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-12 16:09:45 +0800
commit8ee70654479bff695a6781a9f3eaea9f5eb6b765 (patch)
treee25f8637aa5a462284521d7efd5d3851b124f971 /tests/integration/ssh.cfg.j2
parent984be06d90caa765bf8bc035546f0e33e7784dec (diff)
Refactoring connection task
- split `compute` playbook into `setup` and `run` - save inventory and ssh configuration after in `setup` Change-Id: I0803a954ffcd7c07861ff6bdb76acdbfaa4815bd Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/integration/ssh.cfg.j2')
-rw-r--r--tests/integration/ssh.cfg.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/integration/ssh.cfg.j2 b/tests/integration/ssh.cfg.j2
new file mode 100644
index 00000000..2fe049e2
--- /dev/null
+++ b/tests/integration/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 %}