Compare commits

...

3 Commits

Author SHA1 Message Date
Gregor Michels 54b8fdd7f2 incident 024: also upgrade gw-core01
Fixes: a030383fb8
2022-10-24 01:50:45 +02:00
Gregor Michels 59b841850d gateways: define garet profile and release 2022-10-24 01:41:22 +02:00
Gregor Michels 01abb9c160 playbook_sysupgrade: extend fw upgrade automation onto gateways 2022-10-24 01:40:41 +02:00
3 changed files with 29 additions and 7 deletions

View File

@ -22,6 +22,8 @@ gw-core01 ip=10.84.1.1
[gateways:vars]
ansible_remote_tmp=/tmp
garet_profile=sophos-sg-125r2-22.03
garet_release=89cbd27
[server]
hyper01 ip=10.84.1.21

View File

@ -1086,16 +1086,31 @@ This is not the first time the public wifi selectivly stopped working because so
To be proactively notified when this happens again I've created a alarm that should trigger when every end to end test from the public wifi/client network stops working (`ec917a2`).
024 2022.10.24 ~ 01:00 | (maintenance) upgrade accesspoints to OpenWrt 21.02.5
------------------------------------------------------------------------------
024 2022.10.24 ~ 01:00 | (maintenance) upgrade firmware on accespoints and gw-core01
------------------------------------------------------------------------------------
upgrade firmware on all accesspoints to the latest old stable version using the new `playbook_sysupgrade` (since `8d79518`).
upgrade firmware on all accesspoints to the latest old stable version of OpenWrt:
```
-----------------------------------------------------
https://git.sr.ht/~hirnpfirsich/garet
garet 845a6ba, aruba-ap-105_21.02
-----------------------------------------------------
```
garet release: `845a6ba`
garet profile: `aruba-ap-105_21.02`
upgrade firmware on gw-core01 to the latest stable version of OpenWrt:
```
-----------------------------------------------------
https://git.sr.ht/~hirnpfirsich/garet
garet 89cbd27, sophos-sg-125r2_22.03
-----------------------------------------------------
```
all updates where doing using the new "idempotent" `playbook_sysupgrade` (since `8d79518`).
**timetable**:
* 2022.10.24 00:16 - 00:20: `ap-c5d1` (office container)
* 2022.10.24 00:27 - 00:32: `ap-ac7c` (social work)
* 2022.10.24 00:39 - 00:44: `ap-0b99`, `ap-1a38`, `ap-2bbf`, `ap-8f39`, `ap-8f42`, `ap-c495` (tents)
* 2022.10.24 01:44 - 01:46: `gw-core01`
=> downtime of the accesspoints in the specified timeframe
=> downtime of `gw-core01` in the specified timeframe

View File

@ -1,10 +1,15 @@
---
- name: upgrade firmware on openwrt device(s)
hosts: accesspoints
hosts:
- accesspoints
- gateways
vars:
running_garet_profile: "{{ ansible_local['garet']['profile'] | default() }}"
running_garet_release: "{{ ansible_local['garet']['release'] | default() }}"
firmware_file: "firmware/garet_{{ garet_profile }}-{{ garet_release }}.bin"
firmware_suffix:
accesspoints: "bin"
gateways: "img.gz"
firmware_file: "firmware/garet_{{ garet_profile }}-{{ garet_release }}.{{ firmware_suffix[group_names | first] }}"
gather_facts: no
tasks:
- name: gather firmware version