infra/roles/inventory/templates/ssh_config

12 lines
334 B
Plaintext

{% for node_name, node in stack.nodes.items() %}
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 %}