feat(qnap-lcd): Proxmox-correct front-panel LCD menu for esh-nas-pve; albok redeploy note

This commit is contained in:
vh
2026-10-03 16:14:43 -07:00
parent f696aba10a
commit 453c927ace
4 changed files with 228 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# Install the Proxmox-correct QNAP front-panel LCD menu on esh-nas-pve (Prime 2026-10-03: "it's running but not
# correctly, can you fix?"). Idempotent. Originals kept beside: lcd-menu.py.upstream, /root/lcd-menu.service.orig.
# scripts/elway infra-ops@10.0.50.55 --playbook playbooks/qnap-lcd.yaml
steps:
- name: keep the upstream menu script and unit
sudo: true
shell: |
set -e
cp -p /usr/local/bin/qnap_lcd/lcd-menu.py /usr/local/bin/qnap_lcd/lcd-menu.py.upstream
cp -p /etc/systemd/system/lcd-menu.service /root/lcd-menu.service.orig
creates: /usr/local/bin/qnap_lcd/lcd-menu.py.upstream
- name: menu script
sudo: true
upload:
src: services/qnap-lcd/lcd-menu.py
dest: /usr/local/bin/qnap_lcd/lcd-menu.py
mode: "0755"
- name: dry-run every screen before touching the panel
sudo: true
shell: python3 /usr/local/bin/qnap_lcd/lcd-menu.py --dry-run
changed_when: "false"
- name: service unit
sudo: true
upload:
src: services/qnap-lcd/lcd-menu.service
dest: /etc/systemd/system/lcd-menu.service
mode: "0644"
- name: re-enable (WantedBy moved to multi-user.target) and restart
sudo: true
shell: |
set -e
systemctl disable lcd-menu.service 2>/dev/null || true
systemctl daemon-reload
systemctl enable lcd-menu.service
systemctl restart lcd-menu.service
verify:
- name: running, enabled, and no screen errors since the restart
sudo: true
shell: |
sleep 8
systemctl is-active --quiet lcd-menu.service && systemctl is-enabled --quiet lcd-menu.service && ! journalctl -u lcd-menu.service --since "-1min" --no-pager -q | grep -E "screen error|failed|Traceback"
changed_when: "false"