diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-09-06 23:38:59 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-09-06 23:38:59 +0200 |
commit | 10ab1cc7760172961e7b85d7b08b40d8ae455474 (patch) | |
tree | 30ef7ae873a76ec5c014fdf23c18c2bdd6f6d742 /inventory/group_vars/ele-ap/main.yml | |
parent | revert to sane group-names... step 1 of n (diff) |
revert to sane group-names... step 2 of n
Diffstat (limited to 'inventory/group_vars/ele-ap/main.yml')
-rw-r--r-- | inventory/group_vars/ele-ap/main.yml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/inventory/group_vars/ele-ap/main.yml b/inventory/group_vars/ele-ap/main.yml new file mode 100644 index 00000000..e74539e3 --- /dev/null +++ b/inventory/group_vars/ele-ap/main.yml @@ -0,0 +1,58 @@ +--- +network_mgmt_zone: "{{ network_zones.mgmt }}" + +accesspoint_wifi_channels: + 2g4: + ele-ap-forum0: 5 + ele-ap-forum1: 13 + ele-ap-forum2: 9 + ele-ap-forum3: 1 + ele-ap-dom0: 6 + ele-ap-kunsthaus0: 8 + ele-ap-orpheum0: 8 + 5g: + ele-ap-forum0: 40 + ele-ap-forum1: 48 + ele-ap-forum2: 44 + ele-ap-forum3: 36 + ele-ap-dom0: 40 + ele-ap-kunsthaus0: 36 + ele-ap-orpheum0: 48 + +accesspoint_zones: + lan: "{{ network_zones.lan.wifi }}" + guest: "{{ network_zones.guest.wifi }}" + infoscreens: "{{ network_zones.infoscreens.wifi }}" + + +accesspoint_network_zones: "{{ accesspoint_network_zones_yaml | from_yaml }}" +accesspoint_network_zones_yaml: | + {% for zone_name in accesspoint_zones.keys() %} + - name: "interface '{{ zone_name }}'" + options: + type: bridge + ifname: "{{ accesspoint_wired_interface }}.{{ network_zones[zone_name].vlan }}" + accept_ra: 0 + proto: none + {% endfor %} + + +## TODO: set up 802.11r see: +## * https://www.reddit.com/r/openwrt/comments/515oea/finally_got_80211r_roaming_working/ +## * https://gist.github.com/lg/998d3e908d547bd9972a6bb604df377b +accesspoint_wireless_ifaces: "{{ accesspoint_wireless_ifaces_yaml | from_yaml }}" +accesspoint_wireless_ifaces_yaml: | + {% for zone in accesspoint_zones.keys() %} + {% for freq in accesspoint_wireless_frequencies %} + - name: wifi-iface '{{ zone }}{{ freq }}' + options: + device: 'radio{{ freq }}' + network: '{{ zone }}' + mode: 'ap' + disassoc_low_ack: '1' + rsn_preauth: '1' + ssid: '{{ accesspoint_zones[zone].ssid }}' + encryption: '{{ accesspoint_zones[zone].encryption }}' + key: '{{ accesspoint_zones[zone].key }}' + {% endfor %} + {% endfor %} |