06 draft L1

Template Debian 12 — build Packer

OS Cible
Progression 0% 0 / 4

Contexte

Build template Proxmox Debian 12 (VM 9100) avec Docker + NFS jedha mount baked. Cloné par Terraform pour créer VMs tatooine/kamino/kalevala.

Actions

4
  • Précheck 1 cmd
    $ Commandes
    $ # Verif ISO presente sur coruscant ssh -i ~/.ssh/id_ed25519_minfra root@10.0.1.30 'ls /mnt/pve/jedha-data/template/iso/debian-12*.iso' # Verif token SOPS dechiffrable cd /mnt/d/git/minfra-v2/infra/packer sops -d secrets/proxmox.yaml | grep -q packer_token
  • Build 1 cmd 1 verify
    $ Commandes
    $ task debian12:template:deploy
    ✓ Vérifications
    ssh root@10.0.1.30 'qm config 9100 | grep "^template:"'
  • Si build plante 1 cmd
    $ Commandes
    $ task debian12:template:destroy # détruit VM 9100 partielle task debian12:template:deploy # relance from scratch
  • Test du template 1 cmd
    $ Commandes
    $ task debian12:vm:deploy NAME=test-vm IP=10.0.2.99 # Verif ssh -o ProxyJump=root@10.0.1.1 packer@10.0.2.99 ' hostname; docker --version; df -h /mnt/nas ' task debian12:vm:destroy NAME=test-vm