# deploy-runner runtime config — copy to /opt/homelab/config/deploy-runner/env
# on each node and fill in. Read by homelab-deploy-runner.service
# (EnvironmentFile), so: KEY=value, no quotes, no shell expansion.

# Canonical topology node name — MUST match hosts/<node>/ and the `node` field
# in dispatched actions. Not the OS hostname.
NODE_NAME=piha

# Repo checkout on this node (the runner never pulls it; deploys what is there).
REPO_PATH=/home/oskar/homelab-codex-ws

RUNTIME_PATH=/opt/homelab

# VPS Tailscale IP — where the control plane writes dispatched actions and
# expects result events. LEAVE EMPTY ON THE VPS ITSELF: there the executor
# writes into the same /opt/homelab mount and no rsync hop is needed.
VPS_EVENTS_HOST=100.95.58.48
VPS_EVENTS_USER=oskar
VPS_EVENTS_PATH=/opt/homelab/events
VPS_DEPLOY_PATH=/opt/homelab/actions/deploy

# Per-action wall-clock ceiling. Must stay below the executor's
# REDEPLOY_TIMEOUT_SECS (default 900) so a stuck deploy is reported by the node
# rather than silently timed out by the control plane.
DEPLOY_TIMEOUT_SECS=600

# Optional: explicit ssh key for the rsync channel. Omit when the service user's
# default key (~/.ssh/id_*) already reaches the VPS — same key node-agent uses.
# SSH_KEY=/home/oskar/.ssh/id_ed25519
