Add architecture-filtered template selection, safe CT reuse, TUN passthrough, a service-user installer, updates, and a Traefik example. Verify official Node 22 binaries with SHA-256 checksums and document deployment and credential setup. Cover mixed amd64/arm64 template selection with five bash regression checks.
9 lines
302 B
Bash
Executable File
9 lines
302 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Input: pveam available output. Filter architecture BEFORE sorting versions.
|
|
pick_template() {
|
|
local arch=$1
|
|
[[ $arch =~ ^[a-z0-9]+$ ]] || return 1
|
|
awk -v arch="$arch" '$NF ~ ("^debian-13-standard_.*_" arch "\\.tar\\.(zst|xz|gz)$") { print $NF }' |
|
|
sort -V | tail -n 1
|
|
}
|