PLAN: Delete Old Deployment System
IMPLEMENTATION RULES: Before implementing this plan, read and follow:
- WORKFLOW.md - The implementation process
- PLANS.md - Plan structure and best practices
Created: 2026-03-17 Status: Completed (2026-03-17) Parent: INVESTIGATE: Old System Cleanup & Documentation Gaps Prerequisites: PLAN-rename-packages-to-services (completed)
Goal
Delete the dead provision-host/kubernetes/ folder (60 scripts, 6,149 lines), the legacy provision command, and scripts/packages/ — removing all traces of the old deployment system that was replaced by the UIS CLI.
Why
The migration to UIS CLI is complete — all 30 services deploy through ./uis deploy. But the old system is still in the repo: 60 scripts in provision-host/kubernetes/, a provision command in both CLI wrappers, and 2 legacy scripts in scripts/packages/. Anyone reading the repo can't tell which system is real. Dead code undermines trust in documentation.
Scope
What gets deleted
| Area | Files | Lines |
|---|---|---|
provision-host/kubernetes/ | 60 scripts + orchestrator | ~6,149 |
scripts/packages/ | 2 scripts (ai.sh, auth.sh) | ~100 |
provision command in uis | 4 lines (bash wrapper) | 4 |
provision command in uis.ps1 | 4 lines (PowerShell wrapper) | 4 |
What gets updated
| Area | What |
|---|---|
| 6 doc files | Remove references to provision-host/kubernetes/ paths |
docs/services/ai/environment-management.md | Replace ./scripts/packages/ai.sh references with ./uis commands |
docs/services/identity/developer-guide.md | Replace ./scripts/packages/auth.sh references with ./uis commands |
What does NOT change
- UIS CLI (
provision-host/uis/) — the active system, untouched - Ansible playbooks (
ansible/playbooks/) — still used by UIS - Manifests (
manifests/) — still used by UIS - Container image build — Dockerfile does not execute
provision-kubernetes.sh - CI/CD workflows — none reference the old system
Known breakage (accepted)
hosts/install-azure-microk8s-v2.shcallsprovision-kubernetes.sh. This script is already non-functional without a configured Azure VM. Tracked in INVESTIGATE: Remote Deployment Targets which will rewrite it to use UIS CLI.
Phases
Phase 1: Remove provision command from CLI wrappers
Tasks
- 1.1 Remove the
provision)case block fromuisbash wrapper (~line 243) - 1.2 Remove the
"provision"case block fromuis.ps1PowerShell wrapper (~line 174) - 1.3 Remove
provisionfrom any help text or usage output in both wrappers
Validation
Verify ./uis --help (or equivalent) no longer shows provision. User confirms.
Phase 2: Delete scripts/packages/ folder
Tasks
- 2.1 Delete
scripts/packages/ai.sh - 2.2 Delete
scripts/packages/auth.sh - 2.3 Delete
scripts/packages/directory - 2.4 Update
docs/services/ai/environment-management.md— replace./scripts/packages/ai.shreferences with equivalent./uiscommands - 2.5 Update
docs/services/identity/developer-guide.md— replace./scripts/packages/auth.shreferences with equivalent./uiscommands
Validation
Grep confirms no remaining references to scripts/packages/ in active code or docs. User confirms.