2 accesspoint_wifi_channels:
14 ssid: "TEST realstuff"
16 key: "{{ vault_accesspoint_zones.iot.key }}"
20 key: "{{ vault_accesspoint_zones.guests.key }}"
22 # ssid: "TEST r3members"
24 # key: "{{ vault_accesspoint_zones.members.key }}"
28 accesspoint_wired_interface: eth0
29 accesspoint_wireless_device_paths:
30 2.4g: "platform/qca956x_wmac"
31 5g: "pci0000:00/0000:00:00.0"
33 accesspoint_network_base:
34 - name: globals 'globals'
36 ula_prefix: "fc{{ '%02x:%04x:%04x' | format((255 | random(seed=inventory_hostname + '0')), (65535 | random(seed=inventory_hostname + '1')), (65535 | random(seed=inventory_hostname + '2'))) }}::/48"
38 - name: interface 'loopback'
45 - name: interface 'raw'
47 ifname: "{{ accesspoint_wired_interface }}"
51 - name: interface 'mgmt'
54 ifname: "{{ accesspoint_wired_interface }}.{{ net.mgmt.vlan }}"
57 ipaddr: "{{ net.mgmt.prefix | ipaddr(net.mgmt.offsets.accesspoints + groups.accesspoints.index(inventory_hostname)) | ipaddr('address') }}"
58 netmask: "{{ net.mgmt.prefix | ipaddr('netmask') }}"
59 gateway: "{{ net.mgmt.gw }}"
60 dns: "{{ net.mgmt.dns | join(' ') }}"
61 dns_search: realraum.at
63 accesspoint_network_zones: "{{ accesspoint_network_zones_yaml | from_yaml }}"
64 accesspoint_network_zones_yaml: |
65 {% for item in accesspoint_zones.keys() %}
66 - name: interface "{{ item }}"
69 ifname: "{{ accesspoint_wired_interface }}.{{ net[item].vlan }}"
75 accesspoint_wireless_devices:
76 - name: wifi-device 'radio5g'
79 channel: "{{ accesspoint_wifi_channels['5g'][inventory_hostname] }}"
82 path: "{{ accesspoint_wireless_device_paths['5g'] }}"
85 - name: wifi-device 'radio2g4'
88 channel: "{{ accesspoint_wifi_channels['2.4g'][inventory_hostname] }}"
91 path: "{{ accesspoint_wireless_device_paths['2.4g'] }}"
95 ## TODO: set up 802.11r see:
96 ## * https://www.reddit.com/r/openwrt/comments/515oea/finally_got_80211r_roaming_working/
97 ## * https://gist.github.com/lg/998d3e908d547bd9972a6bb604df377b
98 accesspoint_wireless_ifaces: "{{ accesspoint_wireless_ifaces_yaml | from_yaml }}"
99 accesspoint_wireless_types:
100 - { name: only, ssid: 2.4, freq: 2g4 }
101 - { name: only, ssid: 5, freq: 5g }
102 - { name: '', ssid: '', freq: 2g4 }
103 - { name: '', ssid: '', freq: 5g }
104 accesspoint_wireless_ifaces_yaml: |
105 {% for zone in accesspoint_zones.keys() %}
106 {% for item in accesspoint_wireless_types %}
107 - name: wifi-iface '{{ zone }}{{ item.freq }}{{ item.name }}'
109 device: 'radio{{ item.freq }}'
110 network: '{{ zone }}'
112 disassoc_low_ack: '1'
114 ssid: '{{ accesspoint_zones[zone].ssid }}{{ item.ssid }}'
115 encryption: '{{ accesspoint_zones[zone].encryption }}'
116 key: '{{ accesspoint_zones[zone].key }}'
122 openwrt_variant: openwrt
123 openwrt_release: 18.06.1
125 openwrt_target: generic
126 openwrt_profile: ubnt-unifiac-lite
127 openwrt_output_image_suffixes:
128 - "generic-{{ openwrt_profile }}-squashfs-sysupgrade.bin"
133 # Defaults are configured in /etc/sysctl.d/* and can be customized in this file
135 # disable IP forwarding, we don't need it since we are
136 # only an AP that bridges VLANs to Wifi SSIDs
137 net.ipv4.conf.default.forwarding=0
138 net.ipv4.conf.all.forwarding=0
139 net.ipv4.ip_forward=0
140 net.ipv6.conf.default.forwarding=0
141 net.ipv6.conf.all.forwarding=0
143 /etc/dropbear/authorized_keys:
145 {% for key in noc_ssh_keys %}
150 file: "{{ global_files_dir }}/common/htoprc"
157 hostname: '{{ inventory_hostname }}'
158 timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
163 - name: timeserver 'ntp'
168 - '0.lede.pool.ntp.org'
169 - '1.lede.pool.ntp.org'
170 - '2.lede.pool.ntp.org'
171 - '3.lede.pool.ntp.org'
177 RootPasswordAuth: 'off'
180 network: "{{ accesspoint_network_base + accesspoint_network_zones }}"
181 wireless: "{{ accesspoint_wireless_devices + accesspoint_wireless_ifaces }}"