3 Commits

Author SHA1 Message Date
Michel Roegl-Brunner
dbe0c6a37f arr-stack: add auto IP allocation with ping check
Third IP entry mode "auto": user supplies a starting IP, a range
(10.0.0.50-99), or comma-separated ranges; orchestrator walks the
candidates with `ping -c 1 -W 1` and grabs the first N that don't
respond. Skips the gateway and any IPs already assigned this run.
Confirms the picks via yes/no whiptail before locking them in.

Adds iputils-ping to ensure_dependencies.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 14:49:38 +02:00
Michel Roegl-Brunner
fa71af52ed arr-stack: reuse core/tools.func, use $STD, surface whiptail cancels
- Source misc/core.func and misc/tools.func; reuse ensure_dependencies,
  color/formatting/icons.
- Override silent() with a simple log-to-file wrapper so set -e and the
  EXIT trap own all failure handling; apply $STD to the curl download
  and the bash install in install_loop.
- Replace every "|| exit 0" whiptail bailout with a labeled cancelled()
  call so silent exits become diagnosable.
- EXIT trap now prints orphan CTID cleanup hints + the last 20 lines of
  the silent log on non-zero exit.
- Drop CLI flag parsing (--dry-run/--help) and inline comments.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 14:43:57 +02:00
Michel Roegl-Brunner
9819a07e4d add arr-stack expiremtn 2026-05-21 14:14:52 +02:00