aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg23/templates/ssh.conf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tg23/templates/ssh.conf')
-rw-r--r--examples/tg23/templates/ssh.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/tg23/templates/ssh.conf b/examples/tg23/templates/ssh.conf
new file mode 100644
index 0000000..25214b3
--- /dev/null
+++ b/examples/tg23/templates/ssh.conf
@@ -0,0 +1,10 @@
+{# Query parameters: ?username=arne #}
+{% set ssh_username = options['username']|default('ARNE') %}
+
+{% for (switch, s) in objects["public/switches"].switches|dictsort %}
+{% set mg = objects["read/switches-management"].switches[switch] -%}
+Host {{ switch }}.tg23.gathering.org {{ switch }}
+ User {{ ssh_username }}
+ ProxyJump my-proxyjump
+
+{% endfor %}