Commit Graph

11 Commits

Author SHA1 Message Date
root
5329799a5a Add sync-standby-platform.sh, replacing the dead standby-sync pipeline
The VM standby's management-platform was found 2+ months stale during
failover investigation (last deploy: June 10). Root cause: the old
pull-platform-backup.sh + deploy-platform.sh pair on the VM pulled/
redeployed platform-backup-*.tar.gz tarballs of /root/management-platform,
but tarball generation was disabled 2026-08-14 when the source of truth
moved to git-tracked /root/CloudOps — nothing replaced it, so the VM kept
re-deploying its last cached snapshot every hour indefinitely.

New script runs hourly from the main server (cron) instead of pulling from
the VM — pushes /root/CloudOps/platform directly via rsync, plus the live
/root/management-platform/config.py (gitignored, holds real secrets/DB
creds — copied byte-for-byte since it already contains the
RUNNING_ON_MAIN_SERVER auto-detect logic that makes it work correctly
unmodified on both servers). Only restarts the systemd service when rsync
or config actually changed. Old pull/deploy cron entries commented out on
the VM (superseded, not deleted, for history).

Verified end-to-end: ran it live, standby now serves current code (status-
dot markers present in synced templates/app.py), service restarted clean,
config auto-detect correctly logs "running on VM / backup host" and takes
the SSH-fallback code path as designed.
2026-08-21 13:04:05 +02:00
ae267a6d9b Change : UI/UX design 2026-06-21 18:56:18 +01:00
6df165d8d7 ADD: sites and architecture module 2026-06-07 17:52:26 +01:00
312356488a Fix nextcloudfix 2026-05-19 23:49:29 +01:00
8736c304b6 Fix Dockerfile - add flask install 2026-05-19 23:48:01 +01:00
root
53f36d0ac7 Sync from main server - 2026-05-16 00:38:48 2026-05-16 00:38:48 +02:00
root
6158b34613 Sync from main server - 2026-05-13 01:06:32 2026-05-13 01:06:32 +02:00
root
09bbe0403c Sync from main server - 2026-05-05 00:20:15 2026-05-05 00:20:15 +02:00
root
a8db6b5fa2 Sync from main server - 2026-04-18 18:47:38 2026-04-18 18:47:38 +02:00
ameniboukattaya
3f3d3a9fc3 Sync from VM - 2026-04-09 19:24:44 2026-04-09 19:24:44 +01:00
root
1166a52f26 Initial commit: CloudOps infrastructure platform 2026-04-09 19:58:57 +02:00