feat(scripts): каталог bash-скриптов для нод и гостей (VM/LXC)
All checks were successful
Backend Tests / pytest (Python 3.12) (push) Successful in 59s
Deploy to Production / Trigger production update (push) Successful in 8s

Добавлена библиотека скриптов по образцу VMmanager: свои скрипты (CRUD в UI)
и синхронизация из git-репозитория, параметризация через env-переменные
(без конкатенации в shell), выполнение на нодах Proxmox (SSH), в LXC (pct
exec) и в VM (QEMU guest agent, переиспользует существующий execute_script).
Журнал запусков встроен в общий список задач /api/all-tasks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
markmorado
2026-07-11 04:35:43 +05:00
parent f2ee09ab5a
commit 8ca33681ca
18 changed files with 1778 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ from .settings import PanelSettings, SecuritySetting, Workspace, WorkspaceServer
from .misc import Notification, NotificationPreference, BackupJob, AuditLog
from .catalog import ImageMirror
from .appstore import CatalogApp, InstalledApp, AppOperation
from .scripts import ScriptCatalog, ScriptGitRepo, ScriptExecution
__all__ = [
'Base', 'utcnow',
@@ -19,5 +20,6 @@ __all__ = [
'PanelSettings', 'SecuritySetting', 'Workspace', 'WorkspaceServer', 'WorkspaceUser',
'Notification', 'NotificationPreference', 'BackupJob', 'AuditLog',
'ImageMirror',
'CatalogApp', 'InstalledApp', 'AppOperation'
'CatalogApp', 'InstalledApp', 'AppOperation',
'ScriptCatalog', 'ScriptGitRepo', 'ScriptExecution',
]