Add focused cluster runtime apply command

This commit is contained in:
juvenal.diaz 2026-11-02 11:58:37 -06:00
parent 8225a2eb90
commit 6c570ab6db
2 changed files with 13 additions and 0 deletions

View File

@ -59,6 +59,7 @@ Base, Inventory, And Planning
Build And Bootstrap
up Deploy the full homelab pipeline.
cluster Apply the selected cluster runtime only.
deploy-gitea Deploy the Debian-hosted Gitea container.
deploy-api Deploy the Temporal-backed Jeannie API on Debian.
deploy-heimdall Deploy the Debian-hosted Heimdall dashboard.
@ -262,6 +263,9 @@ case "${1:-}" in
record_change_journal "up" "$@"
up
;;
cluster)
cluster_apply "${@:2}"
;;
plan)
plan_homelab "${2:-all}"
;;

View File

@ -156,6 +156,15 @@ Pimox worker static IPs: ${LAB_CLUSTER_PIMOX_WORKER_STATIC_IPS:-${LAB_PIMOX_WORK
EOF
}
cluster_apply() {
require_debian_server "cluster"
record_change_journal "cluster" "$@"
jeannie_log_start "cluster"
jeannie_step_plan 1
run_step "Cluster OpenTofu apply" run_tofu_stack "bootstrap/cluster"
echo "Log: ${JEANNIE_LOG_FILE}"
}
rebuild_cluster() {
require_debian_server "rebuild-cluster"