From 9657b68b45edac5a56737286d2977b24a1462716 Mon Sep 17 00:00:00 2001 From: Thomas Stallinger Date: Wed, 9 Sep 2026 08:10:56 +0200 Subject: [PATCH] Migration: ubuntu-image Backend + Test-Bereitstellungsvorlage (Liebherr) --- migrations/0028_ubuntu_image_backend.sql | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 migrations/0028_ubuntu_image_backend.sql diff --git a/migrations/0028_ubuntu_image_backend.sql b/migrations/0028_ubuntu_image_backend.sql new file mode 100644 index 0000000..1e16cc3 --- /dev/null +++ b/migrations/0028_ubuntu_image_backend.sql @@ -0,0 +1,26 @@ +BEGIN; + +-- Dritte Referenz-Distribution (Roadmap-Plan Phase 1, siehe +-- platform-docs/roadmap/multi-distro-merkmal-workspace-creator.md und +-- tuxflotte-installer@4f3ea1b fuer backends/ubuntu-image/backend.sh). +INSERT INTO backends (id, key, name, installer_type, version) VALUES + (gen_random_uuid(), 'ubuntu-image', 'Ubuntu (Golden Image)', 'golden-image', '26.04'); + +-- Test-/Entwicklungsvorlage in der Liebherr-Org, analog zu den bestehenden +-- Tuxflotte-Mint-Entwicklung-v0.1 / Tuxflotte-Debian-Entwicklung-v0.1. +INSERT INTO bereitstellungsvorlagen + (id, organization_id, workspace_id, backend_id, label, is_default, + disk_encryption, partitioning, secure_boot_required) +SELECT + gen_random_uuid(), + 'ab49c741-6795-43d3-abd4-50772565365a', -- Org "Liebherr" + '55555555-5555-4555-8555-555555555555', -- Workspace "Entwickler" + id, + 'Tuxflotte-Ubuntu-Entwicklung-v0.1', + false, + false, + '{"scheme": "single", "root_filesystem": "ext4", "target_disk_rank": 1}'::jsonb, + false +FROM backends WHERE key = 'ubuntu-image'; + +COMMIT;