menu update

This commit is contained in:
David Schroeder
2026-09-24 19:22:04 -05:00
parent cd4d505064
commit 6f4c95e0f2
11 changed files with 938 additions and 89 deletions
+22 -14
View File
@@ -67,34 +67,42 @@ TAPM_UI_MENU_META() {
TAPM_UI_KIND=task
TAPM_UI_HINT=''
case "$title:$value" in
'Main Menu:'*|'Host Setup:post_install'|'Host Setup:virtio'|\
'Cluster & Maintenance:services'|'TA-ProxMenu Management:branches'|\
'TAPM Host Configuration:customize'|'TAPM Host Configuration:vzdump'|\
'TAPM Host Configuration:restore'|'Configure vzdump Performance:restore')
'Main Menu:'*|'Host Configuration & Recovery:post_install'|'Storage, ISOs & Backups:virtio'|\
'Host Configuration & Recovery:services'|'TAPM Management:branches'|\
'TAPM Host Profile:customize'|'Storage, ISOs & Backups:vzdump'|\
'TAPM Host Profile:restore'|'Proxmox Backup Settings:restore'|\
'Monitoring & Agents:notifications'|'Proxmox Notifications:policy')
TAPM_UI_KIND=submenu ;;
'Select ISO Storage:'*|'Restore TAPM Host Configuration Backup:'*|\
'Git Branch Management:'*|'Configure vzdump Performance:'*)
'Switch TAPM Git Branch:'*|'Proxmox Backup Settings:'*|\
'Update Notification Policy:'*)
TAPM_UI_KIND=choice ;;
'Customize TAPM Host Profile:'*)
[[ "$value" == apply ]] || TAPM_UI_KIND=choice ;;
'TA-ProxMenu Management:install_update')
'TAPM Management:install_update')
# The update banner is printed after the user confirms installation.
TAPM_UI_KIND=choice ;;
esac
case "$value" in back|quit) TAPM_UI_KIND=navigation ;; esac
case "$title:$value" in
'Cluster & Maintenance:maintenance')
TAPM_UI_HINT='Applies to this host; entering maintenance evacuates guests.' ;;
'Cluster & Maintenance:keepalived')
'Cluster & High Availability:maintenance')
TAPM_UI_HINT='This host: eligible guests migrate; local-storage guests shut down gracefully.' ;;
'Cluster & High Availability:keepalived')
TAPM_UI_HINT='Deploy or reconfigure Keepalived across cluster hosts.' ;;
'Cluster & Maintenance:iso_nfs')
'Storage, ISOs & Backups:iso_nfs')
TAPM_UI_HINT='Create an LXC NFS server and register shared ISO storage.' ;;
'Cluster & Maintenance:orphan_disks')
'Storage, ISOs & Backups:orphan_disks')
TAPM_UI_HINT='Read-only cluster scan with optional CSV export.' ;;
'Host Setup:cpu')
'Cluster & High Availability:cpu')
TAPM_UI_HINT='Analyze migration compatibility; review before applying a CPU model.' ;;
'TA-ProxMenu Management:install_update')
TAPM_UI_HINT="Update status: ${UPDATE_STATUS:-unknown}" ;;
'Host Configuration & Recovery:services')
TAPM_UI_HINT='Restart Proxmox management services on this host.' ;;
'Storage, ISOs & Backups:vzdump')
TAPM_UI_HINT='Set backup bandwidth and I/O priority on this host.' ;;
'Proxmox Notifications:policy')
TAPM_UI_HINT='Choose all updates, Proxmox VE version updates only, or no update alerts.' ;;
'TAPM Management:install_update')
TAPM_UI_HINT='Update TAPM on online cluster nodes, or on this standalone host.' ;;
esac
}