infra/roles/inventory/templates/ssh_config

12 lines
338 B
Plaintext
Raw Normal View History

2018-10-02 09:12:23 +03:00
{% for node_name, node in stack.nodes.iteritems() %}
Host {{node_name}}.{{stack.domain}} {{node_name}}
HostName {{node.net.eth0.ipv4[0]|ipaddr('address')}}
User root
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
{% if node.net.eth0.ssh_proxy is defined %}
ProxyJump {{node.net.eth0.ssh_proxy}}
{% endif %}
{% endfor %}