gilles
aaf1b4988d
fix(post-install): identity_network écrit réellement hostname + /etc/hosts + IP statique
...
Le template SJ-8 était un stub (echo STATIC_TARGET sans écriture). Désormais :
- /etc/hostname + hostnamectl, ligne 127.0.1.1 <fqdn> <host> dans /etc/hosts
- IP statique via drop-in /etc/network/interfaces.d/<iface>.cfg (ifupdown),
neutralisation awk de la strophe DHCP existante + source interfaces.d
- sauvegardes horodatées avant écriture ; réseau appliqué AU REBOOT (ne coupe
jamais SSH en live) ; FILE_MODIFIED émis après écriture réelle
Cible Debian/ifupdown (netinstall). syntaxe sh -n validée sur rendu.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-06 18:47:44 +02:00
gilles
3b16fdd52a
feat(post-install): catalogue de profils — paquets, Docker officiel, partages, VM tools (tâche 2 SJ-9)
...
- mécanisme presetVars (variables fixes injectées au rendu, surchargées par le formulaire)
- 6 profils : base_tools / network_tools / dev_git (listes de paquets, low),
docker_official (dépôt officiel Debian, confirmation), sharing (Samba/NFS/mDNS, confirmation),
vm_guest_tools (qemu/vmware)
- 4 templates custom (install-package-groups, docker-official-debian, sharing, vm-guest-tools)
émettant PKG_INSTALLED/SERVICE_ENABLED/ERR → réutilise buildPostInstallResult
- l'UI post-install générique les expose automatiquement (manifeste → formulaire → run)
tsc 0 · 104 tests · build OK · boot OK (8 profils servis). Clôt le volet moteur tâche 2.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-06 12:40:20 +02:00
gilles
e6f4ae470b
feat(post-install): moteur de profils + bootstrap + identité/réseau (tâche 2 SJ-8)
...
- templates custom/bootstrap-root + identity-network (sortie structurée parsable,
sauvegardes, échec contrôlé, jamais de coupure réseau sans reconnexion)
- postInstall: registre de manifestes (champs typés + defaults/defaultFrom),
validateProfileValues + maskSecretValues + buildPostInstallResult (TDD),
renderProfile/previewProfile (masquage secrets), runPostInstall (SSH)
- execute: RunActionOpts.profileId/values + branche post_install (bloc postInstall)
- action_requests: post_install accepté, payload profileId/values transmis à approve
- routes: GET /profiles, POST .../preview (script masqué + validation),
POST .../run (action_request si requiresConfirmation, sinon direct)
Champs = formulaire (pas de question SSH interactive) ; secrets jamais sérialisés ;
identity_network exige confirmation. tsc 0 · 101 tests · build OK · boot OK.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-06 08:02:32 +02:00