Add focused cluster runtime apply command
This commit is contained in:
parent
8225a2eb90
commit
6c570ab6db
4
jeannie
4
jeannie
|
|
@ -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}"
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue