Compare commits

...

2 Commits

Author SHA1 Message Date
Gregor Michels bb9f502eb9 accesspoints: limit backoffice wifi to aps inside office containers 2022-10-11 01:29:49 +02:00
Gregor Michels 7d4d297ef5 inventory: add location information to accesspoints 2022-10-11 01:29:49 +02:00
2 changed files with 14 additions and 8 deletions

View File

@ -1,12 +1,12 @@
[accesspoints]
ap-c5d1 ip=10.84.1.33 channel_2g=1 channel_5g=36 txpower_2g=12 txpower_5g=13 # Office
ap-ac7c ip=10.84.1.31 channel_2g=11 channel_5g=161 txpower_2g=12 txpower_5g=13 # Socialwork
ap-8f42 ip=10.84.1.36 channel_2g=6 channel_5g=40 # Tent 1
ap-0b99 ip=10.84.1.32 channel_2g=11 channel_5g=44 # Tent 2
ap-c495 ip=10.84.1.34 channel_2g=1 channel_5g=48 # Tent 3
ap-2bbf ip=10.84.1.30 channel_2g=11 channel_5g=149 # Tent 4
ap-1a38 ip=10.84.1.35 channel_2g=6 channel_5g=153 # Tent 5
ap-8f39 ip=10.84.1.37 channel_2g=1 channel_5g=157 # Tent 5
ap-c5d1 ip=10.84.1.33 location=office-facility channel_2g=1 channel_5g=36 txpower_2g=12 txpower_5g=13
ap-ac7c ip=10.84.1.31 location=office-social channel_2g=11 channel_5g=161 txpower_2g=12 txpower_5g=13
ap-8f42 ip=10.84.1.36 location=tent-1 channel_2g=6 channel_5g=40
ap-0b99 ip=10.84.1.32 location=tent-2 channel_2g=11 channel_5g=44
ap-c495 ip=10.84.1.34 location=tent-3 channel_2g=1 channel_5g=48
ap-2bbf ip=10.84.1.30 location=tent-4 channel_2g=11 channel_5g=149
ap-1a38 ip=10.84.1.35 location=tent-5 channel_2g=6 channel_5g=153
ap-8f39 ip=10.84.1.37 location=tent-5 channel_2g=1 channel_5g=157
[accesspoints:vars]
ansible_remote_tmp=/tmp

View File

@ -28,6 +28,9 @@ config wifi-iface 'backoffice_radio0'
option ssid 'GU Deutscher Platz Backoffice'
option encryption 'psk2'
option key "{{ lookup('passwordstore', 'wifi/GU_Deutscher_Platz_Backoffice') }}"
{% if location not in ['office-facility', 'office-social'] %}
option disabled '1'
{% endif %}
config wifi-device 'radio1'
option type 'mac80211'
@ -58,3 +61,6 @@ config wifi-iface 'backoffice_radio1'
option ssid 'GU Deutscher Platz Backoffice'
option encryption 'psk2'
option key "{{ lookup('passwordstore', 'wifi/GU_Deutscher_Platz_Backoffice') }}"
{% if location not in ['office-facility', 'office-social'] %}
option disabled '1'
{% endif %}