Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (19 sloc)
655 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ControlMaster auto | |
ControlPath ssh_mux_%h_%p | |
ControlPersist 3600 | |
{% for host in groups['ssh_bastion_hosts'] %} | |
Host {{ hostvars[host].inventory_hostname }} | |
User {{ ssh_bastion_user }} | |
StrictHostKeyChecking no | |
ForwardAgent yes | |
IdentitiesOnly no | |
{% endfor %} | |
{# just pick one bastion host for proxying through #} | |
{% set proxy_host = groups['ssh_bastion_hosts'][0] %} | |
Host 192.168.* | |
{# probably should be User {{ ssh_docker_user }} #} | |
User {{ training_node_user }} | |
ProxyCommand ssh {{ ssh_bastion_user }}@{{ hostvars[proxy_host].inventory_hostname }} -W %h:%p | |
StrictHostKeyChecking no | |
ForwardAgent yes | |
IdentitiesOnly no |