Dispatch remote commands before local cluster initialization
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-11-04 09:22:12 -06:00
parent b0d2fa0d38
commit e9ecd68070
2 changed files with 9 additions and 3 deletions

View File

@ -80,6 +80,9 @@ edge public IP.
### Operational cluster selection
The remote client uses Bash and Python's standard library; it does not load
local inventory, kubeconfigs, or PyYAML. Cluster resolution happens on Debian.
CLI diagnostics, remote API/Temporal jobs, and the self-heal webhook share the
inventory profile resolver. Persist the intended enrolled cluster on Debian:

View File

@ -2,6 +2,12 @@
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Remote execution resolves inventory and cluster identity on the server.
# Keep the client independent of local cluster files and Python YAML packages.
if [[ "${1:-}" == remote ]]; then
exec "${REPO_ROOT}/scripts/jeannie-remote" "${@:2}"
fi
BUILDX_CONFIG="/tmp/buildx-config.toml"
HOMELAB_STATE_DIR="${HOMELAB_STATE_DIR:-${XDG_DATA_HOME:-${HOME}/.local/share}/homelab}"
COSIGN_KEY_PREFIX="${COSIGN_KEY_PREFIX:-${HOMELAB_STATE_DIR}/cosign/cosign}"
@ -516,9 +522,6 @@ case "${1:-}" in
map)
homelab_map "$@"
;;
remote)
"${REPO_ROOT}/scripts/jeannie-remote" "${@:2}"
;;
validate)
validate_homelab
;;