Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
comanage-registry-training-ansible/ssh_config.j2
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First commit.
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 |