1accea28c6
WireGuard-Zugang VM 101 → 10.1.1.1 dokumentiert, horus-root Set und Deploy via Sprung-Host jean@192.168.10.10 ergänzt. Co-authored-by: Cursor <cursoragent@cursor.com>
42 lines
969 B
Bash
Executable File
42 lines
969 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regeneriert assembled/*.pub aus fragments/ (Dedupe nach Key-Material, Feld 2)
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
|
FRAG="$ROOT/fragments"
|
|
ASM="$ROOT/assembled"
|
|
|
|
dedupe() { awk '!seen[$2]++'; }
|
|
|
|
mkdir -p "$ASM"
|
|
|
|
build() {
|
|
local out="$1"; shift
|
|
{ for f in "$@"; do cat "$f"; done; } | grep -v '^#' | grep -v '^$' | dedupe > "$ASM/$out"
|
|
}
|
|
|
|
build proxmox-root.pub \
|
|
"$FRAG/admin-workstations.pub" \
|
|
"$FRAG/host-pve1.pub" \
|
|
"$FRAG/host-pve2.pub" \
|
|
"$FRAG/legacy-pve1-rsa.pub"
|
|
|
|
build vm101-jean.pub \
|
|
"$FRAG/admin-workstations.pub" \
|
|
"$FRAG/admin-laptops-extra.pub" \
|
|
"$FRAG/admin-mobile.pub" \
|
|
"$FRAG/host-pve1.pub"
|
|
|
|
build pve2-lxc-root.pub \
|
|
"$FRAG/admin-workstations.pub" \
|
|
"$FRAG/host-pve2.pub" \
|
|
"$FRAG/admin-laptops-extra.pub" \
|
|
"$FRAG/admin-mobile.pub"
|
|
|
|
build horus-root.pub \
|
|
"$FRAG/horus-vps-root.pub"
|
|
|
|
build authorized_keys.all.pub \
|
|
"$FRAG"/*.pub
|
|
|
|
echo "OK: $(wc -l "$ASM"/*.pub | tail -1)"
|