1 ##########################################################################################
2 # realraum ssh-config (generated by ansible NOC repo)
4 #######################################
5 ### dynamically generated host configs
7 {% for host in (groups['all'] | sort) %}
8 Host {{ hostvars[host].ansible_host }} r3-{{ host }} r3g-{{ host }} r3e-{{ host }}
9 Hostname {{ hostvars[host].ansible_host }}
10 {% if 'localconfig_ssh_config_proxycommand' in hostvars[host] %}
11 ProxyCommand {{ hostvars[host].localconfig_ssh_config_proxycommand }}
13 {% if 'localconfig_ssh_config_user' in hostvars[host] %}
14 User {{ hostvars[host].localconfig_ssh_config_user }}
16 {% if hostvars[host].ansible_port != 22000 %}
17 Port {{ hostvars[host].ansible_port }}
21 #######################################
22 ### static host configs
24 Host gw.realraum.at r3-gw
25 Hostname gw.realraum.at
27 Host gnocchi1.realraum.at r3-gnocchi1
28 Hostname gnocchi1.realraum.at
30 Host gnocchi2.realraum.at r3-gnocchi2
31 Hostname gnocchi2.realraum.at
33 Host ap0.mgmt.realraum.at r3g-ap0
34 Hostname ap0.mgmt.realraum.at
37 Host ap1.mgmt.realraum.at r3g-ap1
38 Hostname ap1.mgmt.realraum.at
41 Host licht.realraum.at r3-licht r3g-licht r3e-licht
42 Hostname licht.realraum.at
46 #############################################################
48 ### general settings, this must come after the last host entry!!!
51 ## use gateway as jump host
53 # ProxyCommand ssh -q -a gw.realraum.at -W %h:%p
54 ProxyCommand ssh -q -a gw.realraum.at nc -q0 -w1 %h %p
56 ## use entrance as jump host
58 ProxyCommand ssh -q -a entrance.realraum.at -W %h:%p
60 Host r3-* r3g-* r3e-* *.realraum.at
61 {% for id_file in localconfig_ssh_ids %}
62 IdentityFile {{ id_file }}
67 {% if localconfig_ssh_user is defined %}
68 User {{ localconfig_ssh_user }}
72 ### don't put anything beyond this line!