make settings configurable via environment variables set externally

This commit is contained in:
June 2025-02-16 23:33:36 +01:00
commit ea0fc6e65a
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
2 changed files with 9 additions and 6 deletions

View file

@ -5,11 +5,11 @@
# Needs apt install libguestfs-tools
#
VMID=9023
STORAGE=local-zfs
OS=debian-12
NAME=chaos-${OS}-tmpl-$(date -u +%Y-%m-%d)
BRIDGE=vmbr0,tag=208
: "${VMID:=9023}"
: "${STORAGE:=local-zfs}"
: "${OS:=debian-12}"
: "${NAME:=chaos-${OS}-tmpl-$(date -u +%Y-%m-%d)}"
: "${BRIDGE:=vmbr0,tag=208}"
set -eE