aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/ssh.cfg.j2
blob: 2fe049e293810d9c8505022c175ae870c32a750a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 %}