summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2024-06-16 21:17:51 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2024-06-16 21:17:51 +0100
commit0c1a61fb18e73267c11c6e10c449229439356481 (patch)
treefbad30169ebe76fca480575d88bd7728f65b1a62
parentabb6fdaac4c185f7807c823d26ddeda264a1b451 (diff)
downloadinfra-0c1a61fb18e73267c11c6e10c449229439356481.tar.gz
infra-0c1a61fb18e73267c11c6e10c449229439356481.tar.bz2
infra-0c1a61fb18e73267c11c6e10c449229439356481.zip
Do not set gate as `ProxyJump` on gate host itself
-rw-r--r--misc/dotfiles/ssh/config.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/dotfiles/ssh/config.j2 b/misc/dotfiles/ssh/config.j2
index f86927e..3ee3830 100644
--- a/misc/dotfiles/ssh/config.j2
+++ b/misc/dotfiles/ssh/config.j2
@@ -14,11 +14,15 @@ Host sun mail
# Moscow machines behind NAT.
Host flame
+{% if inventory_hostname_short != "gate" %}
ProxyJump gate
+{% endif %}
Hostname 10.0.0.2
ForwardAgent yes
Host water
+{% if inventory_hostname_short != "gate" %}
ProxyJump gate
+{% endif %}
Hostname 10.0.0.3
ForwardAgent yes