infra/roles/inventory/templates/ssh_config
2018-10-02 10:16:46 +04:00

12 lines
338 B
Plaintext

{% 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 %}