Add fully automated Debian 13 LUKS encrypted Template build

This commit is contained in:
Philip Henning 2026-02-05 15:33:14 +01:00
parent 40a0623ad0
commit f76fd4a95a
5 changed files with 215 additions and 3 deletions

View file

@ -17,10 +17,22 @@ run = "packer fmt --recursive ${usage_dir?}"
[tasks.build]
usage = '''
arg "<dir>" help="Directory containing the Packer template to build e.g. debian/13-trixie"
flag "-i --install-finished-inform-port <port>" help="Server port to inform when installation is finished" hide=#true
'''
run = '''
mise run lint ${usage_dir?} \
&& packer build ${usage_dir?}
mise run lint ${usage_dir?}
[[ -z "${usage_install_finished_inform_port}" ]] && packer build ${usage_dir?}
[[ -n "${usage_install_finished_inform_port}" ]] && packer build \
-var "install_finished_inform_port=${usage_install_finished_inform_port?}" \
${usage_dir?}
'''
[tasks.build-luks]
usage = '''
arg "<dir>" help="Directory containing the Packer template to build e.g. debian/13-trixie"
'''
run = '''
_scripts/unlock-luks-after-install.py -t ${usage_dir?}
'''
[tasks.init]