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'] }}"
94 accesspoint_wireless_ifaces: "{{ accesspoint_wireless_ifaces_yaml | from_yaml }}"
95 accesspoint_wireless_ifaces_yaml: |
96 {% for item in accesspoint_zones.keys() %}
97 - name: wifi-iface '{{ item }}2g4only'
100 network: '{{ item }}'
102 ssid: '{{ accesspoint_zones[item].ssid }}2.4'
103 encryption: '{{ accesspoint_zones[item].encryption }}'
104 key: '{{ accesspoint_zones[item].key }}'
106 - name: wifi-iface '{{ item }}5gonly'
109 network: '{{ item }}'
111 ssid: '{{ accesspoint_zones[item].ssid }}5'
112 encryption: '{{ accesspoint_zones[item].encryption }}'
113 key: '{{ accesspoint_zones[item].key }}'
115 - name: wifi-iface '{{ item }}2g4'
118 network: '{{ item }}'
120 ssid: '{{ accesspoint_zones[item].ssid }}'
121 encryption: '{{ accesspoint_zones[item].encryption }}'
122 key: '{{ accesspoint_zones[item].key }}'
124 - name: wifi-iface '{{ item }}5g'
127 network: '{{ item }}'
129 ssid: '{{ accesspoint_zones[item].ssid }}'
130 encryption: '{{ accesspoint_zones[item].encryption }}'
131 key: '{{ accesspoint_zones[item].key }}'
136 openwrt_variant: openwrt
137 openwrt_release: 18.06.1
139 openwrt_target: generic
140 openwrt_profile: ubnt-unifiac-lite
141 openwrt_output_image_suffixes:
142 - "generic-{{ openwrt_profile }}-squashfs-sysupgrade.bin"
147 # Defaults are configured in /etc/sysctl.d/* and can be customized in this file
149 # disable IP forwarding, we don't need it since we are
150 # only an AP that bridges VLANs to Wifi SSIDs
151 net.ipv4.conf.default.forwarding=0
152 net.ipv4.conf.all.forwarding=0
153 net.ipv4.ip_forward=0
154 net.ipv6.conf.default.forwarding=0
155 net.ipv6.conf.all.forwarding=0
157 /etc/dropbear/authorized_keys:
159 {% for key in noc_ssh_keys %}
163 /root/.config/htop/htoprc:
165 # Beware! This file is rewritten by htop when settings are changed in the interface.
166 # The parser is also very primitive, and not human-friendly.
167 fields=0 48 17 18 38 39 40 2 46 47 49 1
171 hide_kernel_threads=1
172 hide_userland_threads=0
176 highlight_base_name=1
177 highlight_megabytes=1
182 cpu_count_from_zero=0
183 update_process_names=0
184 account_guest_in_cpu_meter=0
187 left_meters=AllCPUs Memory Swap
188 left_meter_modes=1 1 1
189 right_meters=Tasks LoadAverage Uptime
190 right_meter_modes=2 2 2
197 hostname: '{{ inventory_hostname }}'
198 timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
203 - name: timeserver 'ntp'
208 - '0.lede.pool.ntp.org'
209 - '1.lede.pool.ntp.org'
210 - '2.lede.pool.ntp.org'
211 - '3.lede.pool.ntp.org'
217 RootPasswordAuth: 'off'
220 network: "{{ accesspoint_network_base + accesspoint_network_zones }}"
221 wireless: "{{ accesspoint_wireless_devices + accesspoint_wireless_ifaces }}"