diff options
author | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-04-26 23:03:11 +0200 |
---|---|---|
committer | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-04-26 23:03:11 +0200 |
commit | d5b0d60c5362d03de2968864cd81e0f82b3a95d0 (patch) | |
tree | 444d6daecbfaaf25134f4b3ec7b4c4080ff25fdc /examples/tg23/templates/ssh.conf | |
parent | 04862e4eebba26c6d90685fa63051d1f3cc81234 (diff) |
TG23 Templates 🔥
Diffstat (limited to 'examples/tg23/templates/ssh.conf')
-rw-r--r-- | examples/tg23/templates/ssh.conf | 10 |
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 %} |