🔧 Clarify naming of ssh jump host groups

The key difference between these groups is not that one needs a jump
host and the other does not, but that all hosts of one group run on
machines located in the Netz39 rooms in Magdeburg, while the other group
contains only hosts hosted anywhere in the public internet.  We'll need
this distinction for more things than SSH in the future, e.g. PR !132.

(This is also better, because technically there could be a third group
requiring a jump host which is not ssh.n39.eu … 😉 )

Acked-by: Stefan Haun <tux@netz39.de>
Acked-by: David Kilias <dkdent@netz39.de>
This commit is contained in:
Alexander Dahl 2023-01-09 21:09:43 +01:00
parent 2a4630e3b5
commit 1c2cea1dda
2 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ all:
pottwal.n39.eu: pottwal.n39.eu:
radon.n39.eu: radon.n39.eu:
unicorn.n39.eu: unicorn.n39.eu:
ssh_jump: location_space:
hosts: hosts:
beaker.n39.eu: beaker.n39.eu:
hobbes.n39.eu: hobbes.n39.eu:
@ -40,6 +40,6 @@ all:
radon.n39.eu: radon.n39.eu:
wittgenstein.n39.eu: wittgenstein.n39.eu:
unicorn.n39.eu: unicorn.n39.eu:
ssh_no_jump: location_internet:
hosts: hosts:
tau.netz39.de: tau.netz39.de:

View file

@ -6,7 +6,7 @@ Host ssh.n39.eu
User {{ setup_ssh_logname }} User {{ setup_ssh_logname }}
Port 22 Port 22
{% for host in groups['ssh_jump'] %} {% for host in groups['location_space'] %}
Host {{ host }} Host {{ host }}
Hostname {{ host }} Hostname {{ host }}
IdentityFile {{ setup_ssh_key }} IdentityFile {{ setup_ssh_key }}
@ -16,7 +16,7 @@ Host {{ host }}
Port 22 Port 22
{% endfor %} {% endfor %}
{% for host in groups['ssh_no_jump'] %} {% for host in groups['location_internet'] %}
Host {{ host }} Host {{ host }}
Hostname {{ host }} Hostname {{ host }}
IdentityFile {{ setup_ssh_key }} IdentityFile {{ setup_ssh_key }}