15 lines
622 B
Bash
15 lines
622 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# scripts/onboard/steps/10-bootstrap-runtime.sh — create /opt/homelab layout on remote node
|
||
|
|
#
|
||
|
|
# TODO: create /opt/homelab/{data,config,logs,state,events,world,actions/{pending,approved,running,completed,failed}}
|
||
|
|
# TODO: set ownership to ssh_user (from node.yaml)
|
||
|
|
# TODO: write /opt/homelab/state/node_name from node.yaml name field
|
||
|
|
# TODO: idempotent — skip dirs that already exist
|
||
|
|
|
||
|
|
set -euo pipefail
|
||
|
|
: "${REPO_ROOT:?REPO_ROOT is not set — run via onboard.sh}"
|
||
|
|
source "${REPO_ROOT}/scripts/onboard/lib/remote.sh"
|
||
|
|
|
||
|
|
STEP_NAME="10-bootstrap-runtime"
|
||
|
|
step "[$STEP_NAME] TODO — not yet implemented"
|